Mikael Koli <koli.mik...@gmail.com> added the comment:
And the reason why overriding attribute 'record.msg' with the formatted message is problematic is that the method 'record.getMessage' (which is used by Formatter) fetches the log message from the variable 'record.msg'. Therefore the exc_text needs to be set to None as Formatter checks the existence of this attribute to decide whether or not to format the exception. Otherwise the exception text may be formatted multiple of time. I think it may be more correct solution to not override the record.msg and let the other formatters down the queue reformat the message if required. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44924> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com