You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after this logging.info("my message") starts throwing this error:
--- Logging error ---
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/logging/__init__.py", line 1110, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/logging/__init__.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/Users/user/Library/Caches/pypoetry/virtualenvs/logging-sandbox-cF-GGjXI-py3.11/lib/python3.11/site-packages/pythonjsonlogger/jsonlogger.py", line 243, in format
self.add_fields(log_record, record, message_dict)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/logging-sandbox-cF-GGjXI-py3.11/lib/python3.11/site-packages/pythonjsonlogger/jsonlogger.py", line 191, in add_fields
self._perform_rename_log_fields(log_record)
File "/Users/user/Library/Caches/pypoetry/virtualenvs/logging-sandbox-cF-GGjXI-py3.11/lib/python3.11/site-packages/pythonjsonlogger/jsonlogger.py", line 195, in _perform_rename_log_fields
log_record[new_field_name] = log_record[old_field_name]
~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'exc_info'
I'm using python-json-logger==2.0.7.
Seems strange, because it was added in this pull request and it seems to be merged and working? #160
The text was updated successfully, but these errors were encountered:
Hi, I'm renaming 'exc_info' to 'stack_trace' like this:
But after this logging.info("my message") starts throwing this error:
I'm using python-json-logger==2.0.7.
Seems strange, because it was added in this pull request and it seems to be merged and working? #160
The text was updated successfully, but these errors were encountered: