mirror of https://github.com/jumpserver/jumpserver
fix: 修复日志记录到syslog时中文编码问题
parent
2bcd411164
commit
11675dc850
|
@ -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