Skip to content

Commit 0d2ed6b

Browse files
committed
Set logging format to JSON.
Signed-off-by: Felix Fontein <[email protected]>
1 parent 1af4987 commit 0d2ed6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/compose/compose.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ func RootCommand(dockerCli command.Cli, backend Backend) *cobra.Command { //noli
491491
ui.Mode = ui.ModeQuiet
492492
case ui.ModeJSON:
493493
ui.Mode = ui.ModeJSON
494+
logrus.SetFormatter(&logrus.JSONFormatter{})
494495
default:
495496
return fmt.Errorf("unsupported --progress value %q", opts.Progress)
496497
}

0 commit comments

Comments
 (0)