Fix log config file
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
db6c85d3d7
commit
0e3c2ef10f
1 changed files with 3 additions and 3 deletions
|
@ -101,9 +101,6 @@ func run(traefikConfiguration *TraefikConfiguration) {
|
|||
}
|
||||
log.SetLevel(level)
|
||||
|
||||
if len(traefikConfiguration.ConfigFile) != 0 {
|
||||
log.Infof("Using TOML configuration file %s", traefikConfiguration.ConfigFile)
|
||||
}
|
||||
if traefikConfiguration.File != nil && len(traefikConfiguration.File.Filename) == 0 {
|
||||
// no filename, setting to global config file
|
||||
if len(traefikConfiguration.ConfigFile) != 0 {
|
||||
|
@ -136,6 +133,9 @@ func run(traefikConfiguration *TraefikConfiguration) {
|
|||
}
|
||||
jsonConf, _ := json.Marshal(globalConfiguration)
|
||||
log.Infof("Traefik version %s built on %s", Version, BuildDate)
|
||||
if len(traefikConfiguration.ConfigFile) != 0 {
|
||||
log.Infof("Using TOML configuration file %s", traefikConfiguration.ConfigFile)
|
||||
}
|
||||
log.Debugf("Global configuration loaded %s", string(jsonConf))
|
||||
server := NewServer(globalConfiguration)
|
||||
server.Start()
|
||||
|
|
Loading…
Reference in a new issue