mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-18 22:29:49 -05:00
fix: potential log error
This commit is contained in:
@@ -98,7 +98,11 @@ class LogContext {
|
||||
fields.trace_request = x.get('trace_request');
|
||||
}
|
||||
if ( ! fields.actor && x && x.get('actor') ) {
|
||||
fields.actor = x.get('actor').uid;
|
||||
try {
|
||||
fields.actor = x.get('actor').uid;
|
||||
} catch (e) {
|
||||
console.log('error logging actor (this is probably fine):', e);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.logService.log_(
|
||||
|
||||
Reference in New Issue
Block a user