Skip to content

Commit d3fb344

Browse files
authored
Merge pull request #24 from hoangvx/master
add japanese character encoding for json logger
2 parents f3e6712 + 6c43871 commit d3fb344

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)