mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-28 19:11:19 +00:00
fix: 修复日志记录到syslog时中文编码问题
This commit is contained in:
parent
2fcf045826
commit
fbc5ae1b9b
@ -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…
Reference in New Issue
Block a user