summaryrefslogtreecommitdiff
path: root/cmd/rr
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-07-24 11:25:19 +0300
committerGitHub <[email protected]>2018-07-24 11:25:19 +0300
commit2bfda85901c67aacaf9f1f2cf648d375cf2be240 (patch)
treec4fc065743b33903ba4f676349edecfe8bc5b9c0 /cmd/rr
parentb79eda8ae15be121d085c367c4f18865d45a243d (diff)
Update root.go
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 {