Browse Source

Set proper logging level on tunasynctl-cmd

Phy 5 years ago
parent
commit
a44891d3e8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      internal/logger.go

+ 3 - 0
internal/logger.go

@@ -24,9 +24,12 @@ func InitLogger(verbose, debug, withSystemd bool) {
 
 
 	if debug {
 	if debug {
 		logging.SetLevel(logging.DEBUG, "tunasync")
 		logging.SetLevel(logging.DEBUG, "tunasync")
+		logging.SetLevel(logging.DEBUG, "tunasynctl-cmd")
 	} else if verbose {
 	} else if verbose {
 		logging.SetLevel(logging.INFO, "tunasync")
 		logging.SetLevel(logging.INFO, "tunasync")
+		logging.SetLevel(logging.INFO, "tunasynctl-cmd")
 	} else {
 	} else {
 		logging.SetLevel(logging.NOTICE, "tunasync")
 		logging.SetLevel(logging.NOTICE, "tunasync")
+		logging.SetLevel(logging.NOTICE, "tunasynctl-cmd")
 	}
 	}
 }
 }