Browse Source

[GINR] Option for server logging in production

cgars 8 years ago
parent
commit
bf58c4d7ea
1 changed files with 0 additions and 3 deletions
  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),