Skip to content

Commit

Permalink
reword format_exception string join part
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Jan 31, 2025
1 parent 3148bb6 commit 5374ee9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def log_fatal_exit(error, logger, message=None):
if message is None:
message = "synadm exited due to a fatal error."

# format_exception() returns a list of strings. join it into a single string again.
# format_exception() returns a list of strings (with new lines). join it
# into a single string again for readability.
logger.info("".join(traceback.format_exception(error)))

logger.fatal(
Expand Down

0 comments on commit 5374ee9

Please sign in to comment.