From 0e3c2ef10f8500203eb2196606aed2143eee0eb3 Mon Sep 17 00:00:00 2001 From: Emile Vauge Date: Mon, 30 May 2016 17:57:57 +0200 Subject: [PATCH] Fix log config file Signed-off-by: Emile Vauge --- traefik.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traefik.go b/traefik.go index 5fef4bc08..b05b558eb 100644 --- a/traefik.go +++ b/traefik.go @@ -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()