Redirect server output warnings to stdout (#3831)

This commit is contained in:
Vishal Nayak
2018-01-22 20:58:27 -05:00
committed by GitHub
parent 3627fc7c9a
commit cc0c0dfaf9

View File

@@ -109,6 +109,14 @@ func init() {
},
}
serverCmdUi := &cli.ColoredUi{
ErrorColor: cli.UiColorRed,
WarnColor: cli.UiColorYellow,
Ui: &cli.BasicUi{
Writer: os.Stdout,
},
}
loginHandlers := map[string]LoginHandler{
"aws": &credAws.CLIHandler{},
"cert": &credCert.CLIHandler{},
@@ -404,7 +412,7 @@ func init() {
"server": func() (cli.Command, error) {
return &ServerCommand{
BaseCommand: &BaseCommand{
UI: ui,
UI: serverCmdUi,
},
AuditBackends: map[string]audit.Factory{
"file": auditFile.Factory,