瀏覽代碼

Fix data race

Bruce Marriner 8 年之前
父節點
當前提交
32229d5de5
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      logging.go

+ 0 - 4
logging.go

@@ -62,10 +62,6 @@ func msglog(msgL, caller int, format string, a ...interface{}) {
 // message log level
 func (s *Session) log(msgL int, format string, a ...interface{}) {
 
-	if s.Debug { // Deprecated
-		s.LogLevel = LogDebug
-	}
-
 	if msgL > s.LogLevel {
 		return
 	}