From aed06e602d0cc1bb9f2e771f234427c9c3f2d1c4 Mon Sep 17 00:00:00 2001 From: mikameyer Date: Wed, 8 Apr 2020 10:46:57 +0200 Subject: [PATCH] bugfixes --- cve-alert-restapi/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cve-alert-restapi/cmd/root.go b/cve-alert-restapi/cmd/root.go index 337b1a2..52ec3a2 100644 --- a/cve-alert-restapi/cmd/root.go +++ b/cve-alert-restapi/cmd/root.go @@ -113,7 +113,7 @@ func init() { rootCmd.Flags().Bool("syslog", false, "Use this flag to log to syslog") viper.BindPFlag("log-level", rootCmd.Flags().Lookup("log-level")) viper.BindPFlag("read-db", rootCmd.Flags().Lookup("read-db")) - viper.BindPFlag("syslog", rootCmd.Flags().Lookup("syslog")) + viper.BindPFlag("logging.syslog", rootCmd.Flags().Lookup("syslog")) // Cobra also supports local flags, which will only run // when this action is called directly. // rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")