Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYX committed Jun 29, 2024
1 parent 48a5504 commit d2feddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def my_print(*args, **kwargs):
log.info(" ".join(map(str, args)))
print(*args, **kwargs)

def print_exc(self):
def print_exc():
with io.StringIO() as buf, open("logs/error_log.txt", "a") as f:
traceback.print_exc(file=buf)
f.write(buf.getvalue())

0 comments on commit d2feddb

Please sign in to comment.