fix: potential log error

This commit is contained in:
KernelDeimos
2025-04-19 14:27:14 -04:00
parent c254b39afe
commit f7b302b024
+5 -1
View File
@@ -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_(