Log configuration on proxy start

This has to simplify the debugging because usually we do not know all
options which user used to start mtg.
This commit is contained in:
9seconds
2018-11-01 18:07:16 +03:00
parent 4695a0c433
commit c3f21a7b0d
+1
View File
@@ -183,6 +183,7 @@ func main() { // nolint: gocyclo
defer logger.Sync() // nolint: errcheck
printURLs(conf.GetURLs())
zap.S().Debugw("Configuration", "config", conf)
if conf.UseMiddleProxy() {
zap.S().Infow("Use middle proxy connection to Telegram")