Skip to content

Commit

Permalink
Logger: Use specified format for file logger (#46970)
Browse files Browse the repository at this point in the history
Fixes #45941

(cherry picked from commit 7bc821b)
  • Loading branch information
sakjur authored and grafanabot committed Mar 26, 2022
1 parent 44887a2 commit cce0bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/infra/log/file.go
Expand Up @@ -89,7 +89,7 @@ func (w *FileLogWriter) Init() error {
if err := w.StartLogger(); err != nil {
return err
}
w.logger = log.NewLogfmtLogger(log.NewSyncWriter(w))
w.logger = w.Format(log.NewSyncWriter(w))
return nil
}

Expand Down

0 comments on commit cce0bf0

Please sign in to comment.