MCPcopy Create free account
hub / github.com/gogs/gogs / checkRunMode

Function checkRunMode

internal/route/install.go:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33)
34
35func 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.
47func GlobalInit(customConf string) error {

Callers 1

GlobalInitFunction · 0.85

Calls 2

IsProdModeFunction · 0.92
TitleMethod · 0.80

Tested by

no test coverage detected