Skip to content

Commit 13e7c40

Browse files
authored
Init SLogger in initLogger function (#7119)
Signed-off-by: SungJin1212 <[email protected]>
1 parent c14bfb0 commit 13e7c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/util/log/log.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func InitLogger(cfg *server.Config) {
4343

4444
// when use util_log.Logger, skip 6 stack frames.
4545
Logger = newPrometheusLoggerFrom(l, cfg.LogLevel, "caller", log.Caller(6))
46+
SLogger = GoKitLogToSlog(Logger)
4647

4748
// cfg.Log wraps log function, skip 7 stack frames to get caller information.
4849
// this works in go 1.12, but doesn't work in versions earlier.

0 commit comments

Comments
 (0)