Skip to content

Commit

Permalink
fix devstack log format
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbaruni committed Jan 26, 2025
1 parent eeceb0f commit fef1951
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ func ParseAndConfigureLogging(modeStr, levelStr string) error {
}

func ConfigureLogging(mode LogMode, level zerolog.Level) {
// set global log leve before configuring logging as it is used in the configuration
ConfigureLoggingLevel(level)

var logWriter io.Writer
switch mode {
case LogModeDefault:
Expand All @@ -129,7 +132,6 @@ func ConfigureLogging(mode LogMode, level zerolog.Level) {
logWriter = defaultLogging()
}

ConfigureLoggingLevel(level)
configureLogging(logWriter)
LogBufferedLogs(logWriter)
}
Expand Down

0 comments on commit fef1951

Please sign in to comment.