We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4dd90 commit 23579e7Copy full SHA for 23579e7
cmd/root.go
@@ -23,6 +23,14 @@ Preflight checks are bundled into Packages`,
23
PersistentPreRun: func(cmd *cobra.Command, args []string) {
24
logs.Initialize()
25
},
26
+ // SilenceErrors and SilenceUsage prevents this command or any sub-command
27
+ // from printing arbitrary text to stderr.
28
+ // Why? To ensure that each line of output can be parsed as a single message
29
+ // for consumption by logging agents such as fluentd.
30
+ // Usage information is still available on stdout with the `-h` and `--help`
31
+ // flags.
32
+ SilenceErrors: true,
33
+ SilenceUsage: true,
34
}
35
36
func init() {
0 commit comments