Add version in logs

This commit is contained in:
Martin 2016-05-24 15:45:20 +02:00
parent 89e00eb5a4
commit 0821c7bdd9

View file

@ -121,6 +121,7 @@ func run(traefikConfiguration *TraefikConfiguration) {
log.SetFormatter(&log.TextFormatter{FullTimestamp: true, DisableSorting: true})
}
jsonConf, _ := json.Marshal(globalConfiguration)
log.Infof("Traefik version %s built on %s", Version, BuildDate)
log.Debugf("Global configuration loaded %s", string(jsonConf))
server := NewServer(globalConfiguration)
server.Start()