New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set exc_info to exc_text (if available) and if exc_info is not set #38

Merged
merged 1 commit into from Feb 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Diff settings

Always

Just for now

Set exc_info to exc_text (if available) and if exc_info is not set

  • Loading branch information...
amitsaha committed Jan 18, 2017
commit ac42b205cc275fd0c226843f1dfd226695c09afd
@@ -124,6 +124,8 @@ def format(self, record):
# user-supplied dict.
if record.exc_info and not message_dict.get('exc_info'):
message_dict['exc_info'] = self.formatException(record.exc_info)
if not message_dict.get('exc_info') and record.exc_text:
message_dict['exc_info'] = record.exc_text
try:
log_record = OrderedDict()