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
(cherry picked from commit 66b8c9b)
  • Loading branch information
periklis authored and grafana-delivery-bot[bot] committed Jun 18, 2024
1 parent c61b0d4 commit 94cad3b
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 94cad3b

Please sign in to comment.