mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Log uid
This commit is contained in:
committed by
Guewen Baconnier
co-authored by
Guewen Baconnier
parent
9cf4bf2171
commit
522937c3b5
@@ -29,6 +29,7 @@ class OdooJsonFormatter(jsonlogger.JsonFormatter):
|
||||
record.pid = os.getpid()
|
||||
record.dbname = getattr(threading.currentThread(), 'dbname', '?')
|
||||
record.request_id = getattr(threading.current_thread(), 'request_uuid', None)
|
||||
record.uid = getattr(threading.current_thread(), 'uid', None)
|
||||
_super = super(OdooJsonFormatter, self)
|
||||
return _super.add_fields(log_record, record, message_dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user