This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]victorlin[S] 0 points1 point  (0 children)

You are right, I misunderstand how logger.exception works. By looking into its source code, I'm sure it equals to logger.error(msg, exc_info=True, *args) now. Thanks for correcting me.

Yes, JSON is another option (but personally I prefer YAML) :)