Skip to content

Commit

Permalink
Set JSON as default formatter
Browse files Browse the repository at this point in the history
Signed-off-by: v-pashas <[email protected]>
  • Loading branch information
v-pashas committed Dec 4, 2024
1 parent 90b2029 commit ddb9d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/rollouts-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func newCommand() *cobra.Command {
}
setLogLevel(logLevel)
if logFormat != "" {
log.SetFormatter(createFormatter(logFormat))
log.SetFormatter(createFormatter("json"))
}
logutil.SetKLogLogger(log.New())
logutil.SetKLogLevel(klogLevel)
Expand Down
2 changes: 1 addition & 1 deletion test/cmd/trafficrouter-plugin-sample/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {
logCtx := log.WithFields(log.Fields{"plugin": "trafficrouter"})

setLogLevel("debug")
log.SetFormatter(createFormatter("text"))
log.SetFormatter(createFormatter("json"))

rpcPluginImp := &plugin.RpcPlugin{
LogCtx: logCtx,
Expand Down

0 comments on commit ddb9d1f

Please sign in to comment.