()
| 33 | ) |
| 34 | |
| 35 | func checkRunMode() { |
| 36 | if conf.IsProdMode() { |
| 37 | macaron.Env = macaron.PROD |
| 38 | macaron.ColorLog = false |
| 39 | git.SetOutput(nil) |
| 40 | } else { |
| 41 | git.SetOutput(os.Stdout) |
| 42 | } |
| 43 | log.Info("Run mode: %s", strings.Title(macaron.Env)) |
| 44 | } |
| 45 | |
| 46 | // GlobalInit is for global configuration reload-able. |
| 47 | func GlobalInit(customConf string) error { |
no test coverage detected