Skip to content

Commit

Permalink
fix: set default log level info
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Oct 30, 2024
1 parent 99c5040 commit 8946d9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ func parseConfiguration() {
level, err := zerolog.ParseLevel(val)
if err != nil {
fmt.Printf("Invalid log level provided %s. Setting default to INFO", val)
zerolog.SetGlobalLevel(zerolog.InfoLevel)
} else {
zerolog.SetGlobalLevel(level)
}
Expand Down

0 comments on commit 8946d9b

Please sign in to comment.