Skip to content

Commit

Permalink
set loglvl to panic if we use stdout flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Dec 9, 2023
1 parent 5980da2 commit ff0d91f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/dmsgcurl/commands/dmsgcurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ var RootCmd = &cobra.Command{
if dmsgcurlLog == nil {
dmsgcurlLog = logging.MustGetLogger("dmsgcurl")
}
if stdout {
logLvl = "panic"
}
if logLvl != "" {
if lvl, err := logging.LevelFromString(logLvl); err == nil {
logging.SetLevel(lvl)
Expand Down

0 comments on commit ff0d91f

Please sign in to comment.