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 9573182 commit aed06e6Copy full SHA for aed06e6
cve-alert-restapi/cmd/root.go
@@ -113,7 +113,7 @@ func init() {
113
rootCmd.Flags().Bool("syslog", false, "Use this flag to log to syslog")
114
viper.BindPFlag("log-level", rootCmd.Flags().Lookup("log-level"))
115
viper.BindPFlag("read-db", rootCmd.Flags().Lookup("read-db"))
116
- viper.BindPFlag("syslog", rootCmd.Flags().Lookup("syslog"))
+ viper.BindPFlag("logging.syslog", rootCmd.Flags().Lookup("syslog"))
117
// Cobra also supports local flags, which will only run
118
// when this action is called directly.
119
// rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
0 commit comments