fix: 修复日志记录到syslog时中文编码问题

pull/9991/head
Bai 2023-03-15 19:43:11 +08:00 committed by Jiangjie.Bai
parent 2bcd411164
commit 11675dc850
1 changed files with 1 additions and 1 deletions

View File

@ -274,4 +274,4 @@ def ensure_last_char_is_ascii(data):
def data_to_json(data, sort_keys=True, indent=2, cls=None):
if cls is None:
cls = DjangoJSONEncoder
return json.dumps(data, sort_keys=sort_keys, indent=indent, cls=cls)
return json.dumps(data, ensure_ascii=False, sort_keys=sort_keys, indent=indent, cls=cls)