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

pull/9982/head
Bai 2 years ago committed by Jiangjie.Bai
parent 891d9d36b0
commit 41edeb9027

@ -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)

Loading…
Cancel
Save