Skip to content

Commit

Permalink
Rename log level function
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 15, 2023
1 parent de7730b commit 40f0f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Execute(cmd *cobra.Command, args []string) error {
if err != nil {
ui.Error().Msgf("Invalid log level: %v - use one of: %v", *loglevel, ui.LogLevelStrings())
} else {
ui.SetDefaultLoglevel(ll)
ui.SetLoglevel(ll)
}

if *logfile != "" {
Expand Down
2 changes: 1 addition & 1 deletion modules/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Run() error {
if err != nil {
ui.Error().Msgf("Invalid log level: %v - use one of: %v", *loglevel, ui.LogLevelStrings())
} else {
ui.SetDefaultLoglevel(ll)
ui.SetLoglevel(ll)
}

if *logfile != "" {
Expand Down

0 comments on commit 40f0f04

Please sign in to comment.