Skip to content

Commit

Permalink
Merge pull request #65 from fubuki8087/fix/TraceAll_logging
Browse files Browse the repository at this point in the history
Fixed issue with logging in `TraceAll`
  • Loading branch information
AryazE authored May 9, 2024
2 parents 2897dd0 + 626b8f5 commit a6420ae
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/dynapyt/analyses/TraceAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ def __init__(self) -> None:
root_logger.addHandler(handler)

def log(self, iid: int, *args, **kwargs):
res = ""
# for arg in args:
# if 'danger_of_recursion' in kwargs:
# res += ' ' + str(hex(id(arg)))
# else:
# res += ' ' + str(arg)
logging.info(str(iid) + ": " + res[:80])
args_str = ' '.join([str(x) for x in args])
kwargs_str = ' '.join([f"{k}={v}" for k, v in kwargs.items()])
logging.info(f"{iid}: {args_str} {kwargs_str}")

# Literals

Expand Down

0 comments on commit a6420ae

Please sign in to comment.