We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5769f51 + 6945e1b commit 403d822Copy full SHA for 403d822
json_logging/__init__.py
@@ -20,7 +20,7 @@
20
ENABLE_JSON_LOGGING_DEBUG = False
21
EMPTY_VALUE = '-'
22
CREATE_CORRELATION_ID_IF_NOT_EXISTS = True
23
-JSON_SERIALIZER = lambda log: json.dumps(log, ensure_ascii=False)
+JSON_SERIALIZER = lambda log: json.dumps(log, ensure_ascii=False, default=str)
24
CORRELATION_ID_HEADERS = ['X-Correlation-ID', 'X-Request-ID']
25
COMPONENT_ID = EMPTY_VALUE
26
COMPONENT_NAME = EMPTY_VALUE
0 commit comments