Skip to content

Commit

Permalink
with context msg
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Mar 14, 2024
1 parent ffc74e9 commit 98e69b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unicorn_fy/unicorn_fy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def __init__(self, debug=False):
f"{str(platform.system())} {str(platform.release())} started ...")

def __enter__(self):
logger.debug(f"Entering 'with-context' ...")
logger.debug(f"Entering with-context of UnicornFy() ...")
return self

def __exit__(self, exc_type, exc_value, error_traceback):
logger.debug(f"Leaving 'with-context' ...")
logger.debug(f"Leaving with-context of UnicornFy() ...")
if exc_type:
logger.critical(f"An exception occurred: {exc_type} - {exc_value} - {error_traceback}")

Expand Down

0 comments on commit 98e69b1

Please sign in to comment.