Skip to content

Commit 206e2e8

Browse files
committed
Fix worker log level setting
1 parent 439c308 commit 206e2e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/conductor/cmd/main.go

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@ func startWorker() {
181181
log.Fatal("unable to read config", err)
182182
}
183183

184+
if !CLI.Debug {
185+
encoder.SetLogger(logging.Create("encoder", logging.Prod))
186+
manager.SetLogger(logging.Create("claim", logging.Prod))
187+
storage.SetLogger(logging.Create("storage", logging.Prod))
188+
ladder.SetLogger(logging.Create("ladder", logging.Prod))
189+
mfr.SetLogger(logging.Create("mfr", logging.Prod))
190+
dispatcher.SetLogger(logging.Create("dispatcher", logging.Prod))
191+
}
192+
184193
s3opts := cfg.GetStringMapString("s3")
185194

186195
if CLI.Worker.StreamsDir != "" {

0 commit comments

Comments
 (0)