Skip to content

Commit

Permalink
Merge conditional statements in ds_logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Jun 9, 2024
1 parent 12791ae commit 3dab0ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datashuttle/utils/ds_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ def get_logger():

def logging_is_active():
logger_exists = get_logger_name() in logging.root.manager.loggerDict
if logger_exists:
if get_logger().handlers != []:
return True
if logger_exists and get_logger().handlers != []:
return True
return False


Expand Down

0 comments on commit 3dab0ec

Please sign in to comment.