From 53344fbf3ce6bb93b293b860677d7b00a274a48a Mon Sep 17 00:00:00 2001 From: SungJin1212 Date: Thu, 20 Nov 2025 11:18:58 +0900 Subject: [PATCH] Init SLogger in initLogger function Signed-off-by: SungJin1212 --- pkg/util/log/log.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/util/log/log.go b/pkg/util/log/log.go index 51df578b21d..9b58c72c0a9 100644 --- a/pkg/util/log/log.go +++ b/pkg/util/log/log.go @@ -43,6 +43,7 @@ func InitLogger(cfg *server.Config) { // when use util_log.Logger, skip 6 stack frames. Logger = newPrometheusLoggerFrom(l, cfg.LogLevel, "caller", log.Caller(6)) + SLogger = GoKitLogToSlog(Logger) // cfg.Log wraps log function, skip 7 stack frames to get caller information. // this works in go 1.12, but doesn't work in versions earlier.