mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-19 21:21:23 -06:00
dev: add actor to log context when available
This commit is contained in:
@@ -97,6 +97,9 @@ class LogContext {
|
||||
if ( x && x.get('trace_request') ) {
|
||||
fields.trace_request = x.get('trace_request');
|
||||
}
|
||||
if ( ! fields.actor && x && x.get('actor') ) {
|
||||
fields.actor = x.get('actor').uid;
|
||||
}
|
||||
}
|
||||
this.logService.log_(
|
||||
log_level,
|
||||
|
||||
Reference in New Issue
Block a user