Merge "Redirect airshipctl log output to stderr"
This commit is contained in:
commit
14cf69d9eb
@ -60,7 +60,7 @@ func NewRootCommand(out io.Writer) (*cobra.Command, *RootOptions) {
|
|||||||
SilenceErrors: true,
|
SilenceErrors: true,
|
||||||
SilenceUsage: true,
|
SilenceUsage: true,
|
||||||
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
PersistentPreRun: func(cmd *cobra.Command, args []string) {
|
||||||
log.Init(options.Debug, cmd.OutOrStdout())
|
log.Init(options.Debug, cmd.ErrOrStderr())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
rootCmd.SetOut(out)
|
rootCmd.SetOut(out)
|
||||||
|
Loading…
Reference in New Issue
Block a user