Skip to content

Commit

Permalink
When running with OPERATOR_LOCAL_MODE, emit log output as unstructure…
Browse files Browse the repository at this point in the history
…d text.

Signed-off-by: Josh Kneubuhl <[email protected]>
  • Loading branch information
jkneubuh authored and asararatnakar committed Nov 7, 2022
1 parent 718edf8 commit db38e85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/command/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func OperatorWithSignal(operatorCfg *oconfig.Config, signalHandler context.Conte
logf.SetLogger(*operatorCfg.Logger)
ctrl.SetLogger(*operatorCfg.Logger)
} else {
logf.SetLogger(zap.New())
// Use the unstructured log formatter when running locally.
logf.SetLogger(zap.New(zap.UseDevMode(local)))
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
}

Expand Down

0 comments on commit db38e85

Please sign in to comment.