Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
make pretty logging working (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
addozhang authored Nov 17, 2020
1 parent 1caa924 commit 4693031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func newLogger(component string) zerolog.Logger {
// New creates a new zerolog.Logger
func New(component string) zerolog.Logger {
if os.Getenv(constants.EnvVarHumanReadableLogMessages) == "true" {
NewPretty(component)
return NewPretty(component)
}
return newLogger(component)
}
Expand Down

0 comments on commit 4693031

Please sign in to comment.