mirror of https://github.com/docker/compose.git
Set logging format to JSON.
Signed-off-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8f7cd00481
commit
2db04c1e40
|
@ -491,6 +491,7 @@ func RootCommand(dockerCli command.Cli, backend Backend) *cobra.Command { //noli
|
||||||
ui.Mode = ui.ModeQuiet
|
ui.Mode = ui.ModeQuiet
|
||||||
case ui.ModeJSON:
|
case ui.ModeJSON:
|
||||||
ui.Mode = ui.ModeJSON
|
ui.Mode = ui.ModeJSON
|
||||||
|
logrus.SetFormatter(&logrus.JSONFormatter{})
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unsupported --progress value %q", opts.Progress)
|
return fmt.Errorf("unsupported --progress value %q", opts.Progress)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue