summaryrefslogtreecommitdiff
path: root/cmd/rr
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rr')
-rw-r--r--cmd/rr/cmd/root.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/rr/cmd/root.go b/cmd/rr/cmd/root.go
index 60fa79df..e6c065c7 100644
--- a/cmd/rr/cmd/root.go
+++ b/cmd/rr/cmd/root.go
@@ -85,8 +85,6 @@ func Execute() {
}
func init() {
- Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
-
CLI.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose output")
CLI.PersistentFlags().BoolVarP(&debugMode, "debug", "d", false, "debug mode")
CLI.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is .rr.yaml)")
@@ -94,6 +92,7 @@ func init() {
cobra.OnInitialize(func() {
if verbose {
Logger.SetLevel(logrus.DebugLevel)
+ Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
}
if debugMode {