Skip to content

Commit

Permalink
Update morpheus/utils/logger.py
Browse files Browse the repository at this point in the history
Co-authored-by: David Gardner <[email protected]>
  • Loading branch information
mdemoret-nv and dagardner-nv authored Jun 3, 2024
1 parent db5dca8 commit 7efd9de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morpheus/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def reset_logging(logger_name: str = "morpheus"):
handler.release()
morpheus_logger.removeHandler(handler)

delattr(morpheus_logger, "_configured_by_morpheus")
if hasattr(morpheus_logger, "_configured_by_morpheus"):
delattr(morpheus_logger, "_configured_by_morpheus")


def configure_logging(*extra_handlers: logging.Handler, log_level: int = None, log_config_file: str = None):
Expand Down

0 comments on commit 7efd9de

Please sign in to comment.