Skip to content

Commit c1559c4

Browse files
committed
Use level.Info(...) instead of directly calling logger
Signed-off-by: pokom <[email protected]>
1 parent 29e8667 commit c1559c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackdriver_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (h *handler) innerHandler(filters map[string]bool) http.Handler {
242242
// Delegate http serving to Prometheus client library, which will call collector.Collect.
243243
opts := promhttp.HandlerOpts{}
244244
if *monitoringEnablePromHttpCustomLogger {
245-
h.logger.Log("msg", "Enabling custom logger for promhttp")
245+
level.Info(h.logger).Log("msg", "Enabling custom logger for promhttp")
246246
opts = promhttp.HandlerOpts{
247247
ErrorLog: NewPromHttpCustomLogger(h.logger),
248248
}

0 commit comments

Comments
 (0)