Skip to content

Commit

Permalink
Fix worker log level setting
Browse files Browse the repository at this point in the history
  • Loading branch information
anbsky committed Jul 11, 2024
1 parent 439c308 commit 206e2e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/conductor/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ func startWorker() {
log.Fatal("unable to read config", err)
}

if !CLI.Debug {
encoder.SetLogger(logging.Create("encoder", logging.Prod))
manager.SetLogger(logging.Create("claim", logging.Prod))
storage.SetLogger(logging.Create("storage", logging.Prod))
ladder.SetLogger(logging.Create("ladder", logging.Prod))
mfr.SetLogger(logging.Create("mfr", logging.Prod))
dispatcher.SetLogger(logging.Create("dispatcher", logging.Prod))
}

s3opts := cfg.GetStringMapString("s3")

if CLI.Worker.StreamsDir != "" {
Expand Down

0 comments on commit 206e2e8

Please sign in to comment.