瀏覽代碼

[GINR] Option for server logging in production

cgars 8 年之前
父節點
當前提交
bf58c4d7ea
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      cmd/serv.go

+ 0 - 3
cmd/serv.go

@@ -60,9 +60,6 @@ func setup(c *cli.Context, logPath string, connectDB bool) {
 	setting.NewContext()
 
 	level := log.TRACE
-	if setting.ProdMode {
-		level = log.ERROR
-	}
 	log.New(log.FILE, log.FileConfig{
 		Level:    level,
 		Filename: filepath.Join(setting.LogRootPath, logPath),