Corrects log level
This commit is contained in:
parent
4ec6b06b8b
commit
32c0ffe87a
1 changed files with 1 additions and 4 deletions
|
@ -69,19 +69,16 @@ func main() {
|
||||||
} else {
|
} else {
|
||||||
logBackend := logging.NewLogBackend(fi, "", 0)
|
logBackend := logging.NewLogBackend(fi, "", 0)
|
||||||
logBackendFormatter := logging.NewBackendFormatter(logBackend, logging.GlogFormatter)
|
logBackendFormatter := logging.NewBackendFormatter(logBackend, logging.GlogFormatter)
|
||||||
logBackendLeveled := logging.AddModuleLevel(logBackend)
|
|
||||||
logBackendLeveled.SetLevel(level, "")
|
|
||||||
backends = append(backends, logBackendFormatter)
|
backends = append(backends, logBackendFormatter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if gloablConfiguration.TraefikLogsStdout {
|
if gloablConfiguration.TraefikLogsStdout {
|
||||||
logBackend := logging.NewLogBackend(os.Stdout, "", 0)
|
logBackend := logging.NewLogBackend(os.Stdout, "", 0)
|
||||||
logBackendFormatter := logging.NewBackendFormatter(logBackend, format)
|
logBackendFormatter := logging.NewBackendFormatter(logBackend, format)
|
||||||
logBackendLeveled := logging.AddModuleLevel(logBackend)
|
|
||||||
logBackendLeveled.SetLevel(level, "")
|
|
||||||
backends = append(backends, logBackendFormatter)
|
backends = append(backends, logBackendFormatter)
|
||||||
}
|
}
|
||||||
logging.SetBackend(backends...)
|
logging.SetBackend(backends...)
|
||||||
|
logging.SetLevel(level, "traefik")
|
||||||
|
|
||||||
configurationRouter = LoadDefaultConfig(gloablConfiguration)
|
configurationRouter = LoadDefaultConfig(gloablConfiguration)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue