Skip to content

Commit

Permalink
fix: Init internal server log along with loki's server instance (#13221)
Browse files Browse the repository at this point in the history
  • Loading branch information
periklis authored Jun 17, 2024
1 parent 9f31b25 commit 66b8c9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/loki/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func main() {
serverCfg := &config.Server
serverCfg.Log = util_log.InitLogger(serverCfg, prometheus.DefaultRegisterer, false)

if config.InternalServer.Enable {
config.InternalServer.Log = serverCfg.Log
}

// Validate the config once both the config file has been loaded
// and CLI flags parsed.
if err := config.Validate(); err != nil {
Expand Down

0 comments on commit 66b8c9b

Please sign in to comment.