Skip to content

Commit f7b302b

Browse files
committed
fix: potential log error
1 parent c254b39 commit f7b302b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/backend/src/modules/core/LogService.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ class LogContext {
9898
fields.trace_request = x.get('trace_request');
9999
}
100100
if ( ! fields.actor && x && x.get('actor') ) {
101-
fields.actor = x.get('actor').uid;
101+
try {
102+
fields.actor = x.get('actor').uid;
103+
} catch (e) {
104+
console.log('error logging actor (this is probably fine):', e);
105+
}
102106
}
103107
}
104108
this.logService.log_(

0 commit comments

Comments
 (0)