Skip to content

Commit 66b8c9b

Browse files
authored
fix: Init internal server log along with loki's server instance (#13221)
1 parent 9f31b25 commit 66b8c9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/loki/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ func main() {
6060
serverCfg := &config.Server
6161
serverCfg.Log = util_log.InitLogger(serverCfg, prometheus.DefaultRegisterer, false)
6262

63+
if config.InternalServer.Enable {
64+
config.InternalServer.Log = serverCfg.Log
65+
}
66+
6367
// Validate the config once both the config file has been loaded
6468
// and CLI flags parsed.
6569
if err := config.Validate(); err != nil {

0 commit comments

Comments
 (0)