Skip to content

Commit 25dd0f1

Browse files
authored
fix log output of collect[] params (#505)
* fix log output of collect[] params Signed-off-by: Sho Ishii <[email protected]>
1 parent 650046d commit 25dd0f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mysqld_exporter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"os"
2424
"path"
2525
"strconv"
26+
"strings"
2627
"time"
2728

2829
"github.com/go-kit/kit/log"
@@ -195,7 +196,7 @@ func newHandler(metrics collector.Metrics, scrapers []collector.Scraper, logger
195196
r = r.WithContext(ctx)
196197
}
197198
}
198-
level.Debug(logger).Log("msg", "collect[] params", "params", params)
199+
level.Debug(logger).Log("msg", "collect[] params", "params", strings.Join(params, ","))
199200

200201
// Check if we have some "collect[]" query parameters.
201202
if len(params) > 0 {

0 commit comments

Comments
 (0)