Ver código fonte

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.
tags/0.15.1^2
9seconds 7 anos atrás
pai
commit
c3f21a7b0d
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      main.go

+ 1
- 0
main.go Ver arquivo

183
 	defer logger.Sync() // nolint: errcheck
183
 	defer logger.Sync() // nolint: errcheck
184
 
184
 
185
 	printURLs(conf.GetURLs())
185
 	printURLs(conf.GetURLs())
186
+	zap.S().Debugw("Configuration", "config", conf)
186
 
187
 
187
 	if conf.UseMiddleProxy() {
188
 	if conf.UseMiddleProxy() {
188
 		zap.S().Infow("Use middle proxy connection to Telegram")
189
 		zap.S().Infow("Use middle proxy connection to Telegram")

Carregando…
Cancelar
Salvar