瀏覽代碼

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 年之前
父節點
當前提交
c3f21a7b0d
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      main.go

+ 1
- 0
main.go 查看文件

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

Loading…
取消
儲存