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 810b033 commit 35d6638Copy full SHA for 35d6638
cmd/root.go
@@ -22,6 +22,14 @@ Preflight checks are bundled into Packages`,
22
PersistentPreRun: func(cmd *cobra.Command, args []string) {
23
logs.Initialize()
24
},
25
+ // SilenceErrors and SilenceUsage prevents this command or any sub-command
26
+ // from printing arbitrary text to stderr.
27
+ // Why? To ensure that each line of output can be parsed as a single message
28
+ // for consumption by logging agents such as fluentd.
29
+ // Usage information is still available on stdout with the `-h` and `--help`
30
+ // flags.
31
+ SilenceErrors: true,
32
+ SilenceUsage: true,
33
}
34
35
func init() {
0 commit comments