From 445e0aeac9b63490af1d50211524155f43199d66 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Tue, 20 Feb 2018 09:50:00 +1100 Subject: [PATCH] Set default log level to info --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 5868e62..2873570 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -59,7 +59,7 @@ func init() { // Cobra supports persistent flags, which, if defined here, // will be global for your application. RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.php-fpm_exporter.yaml)") - RootCmd.PersistentFlags().StringVar(&logLevel, "log.level", "error", "Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]") + RootCmd.PersistentFlags().StringVar(&logLevel, "log.level", "info", "Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]") // Cobra also supports local flags, which will only run // when this action is called directly.