Skip to content

Commit

Permalink
Fix - Fixed bad variable name in get_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed Mar 5, 2022
1 parent 1054942 commit 6f2cd93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emhass/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def get_logger(fun_name: str, config_path: str, save_to_file: Optional[bool] = T
logger = logging.getLogger(fun_name)
logger.propagate = True
logger.setLevel(logging.DEBUG)
logger.fileSetting = file
if file:
logger.fileSetting = save_to_file
if save_to_file:
ch = logging.FileHandler(config_path + '/data/logger_emhass.log')
else:
ch = logging.StreamHandler()
Expand Down

0 comments on commit 6f2cd93

Please sign in to comment.