From 02065106e77a1b740623d0e3fc4a9f2d28697248 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Mon, 4 Mar 2024 15:17:19 +0900 Subject: [PATCH] =?UTF-8?q?max=5Fretry=20=E3=81=AE=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 54062df..da725df 100644 --- a/config.go +++ b/config.go @@ -165,7 +165,8 @@ func setDefaultsConfig(config *Config) { // 未指定の場合のリトライ回数は 0 if config.MaxRetry == nil { - *config.MaxRetry = DefaultMaxRetry + maxRetry := DefaultMaxRetry + config.MaxRetry = &maxRetry } } func validateConfig(config *Config) error { @@ -215,4 +216,5 @@ func ShowConfig(config *Config) { zlog.Info().Str("exporter_listen_addr", config.ExporterListenAddr).Msg("CONF") zlog.Info().Int("exporter_listen_port", config.ExporterListenPort).Msg("CONF") + zlog.Info().Int("max_retry", *config.MaxRetry).Msg("CONF") }