mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-08 06:54:18 +00:00
fix: potential log error
This commit is contained in:
1 parent
c254b39afe
commit
f7b302b024
1 file changed
+5
-1
@@ -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