diff --git a/cisco_wifi_ctl.py b/cisco_wifi_ctl.py index 27b0b88c..9969e318 100755 --- a/cisco_wifi_ctl.py +++ b/cisco_wifi_ctl.py @@ -150,7 +150,7 @@ def main(): file_handler.setLevel(logging.DEBUG) file_handler.setFormatter(formatter) logg.addHandler(file_handler) - logg.addHandler(logging.StreamHandler(sys.stdout)) + logging.basicConfig(format=FORMAT, handlers=[console_handler]) else: # stdout logging logging.basicConfig(format=FORMAT, handlers=[console_handler]) diff --git a/lf_cisco_power.py b/lf_cisco_power.py index 3815285b..b8371699 100755 --- a/lf_cisco_power.py +++ b/lf_cisco_power.py @@ -361,8 +361,8 @@ def main(): file_handler.setLevel(logging.DEBUG) file_handler.setFormatter(formatter) logg.addHandler(file_handler) - logg.addHandler(logging.StreamHandler(sys.stdout)) # allows to logging to file and stderr - #logging.basicConfig(format=FORMAT, handlers=[console_handler]) + #logg.addHandler(logging.StreamHandler(sys.stdout)) # allows to logging to file and stderr + logging.basicConfig(format=FORMAT, handlers=[console_handler]) else: #pass