Skip to content

Commit 6c43871

Browse files
committed
add japanese character encoding for json logger
1 parent f3e6712 commit 6c43871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json_logging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ENABLE_JSON_LOGGING_DEBUG = False
1919
EMPTY_VALUE = '-'
2020
CREATE_CORRELATION_ID_IF_NOT_EXISTS = True
21-
JSON_SERIALIZER = json.dumps
21+
JSON_SERIALIZER = lambda log: json.dumps(log, ensure_ascii=False)
2222
CORRELATION_ID_HEADERS = ['X-Correlation-ID', 'X-Request-ID']
2323
COMPONENT_ID = EMPTY_VALUE
2424
COMPONENT_NAME = EMPTY_VALUE

0 commit comments

Comments
 (0)