mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-31 11:21:07 +00:00
fix: sometimes WebServer log doesn't have context
This commit is contained in:
@@ -390,7 +390,9 @@ class WebServerService extends BaseService {
|
||||
concern: 'web'
|
||||
});
|
||||
try {
|
||||
log.info(message, fields);
|
||||
this.context.arun(() => {
|
||||
log.info(message, fields);
|
||||
});
|
||||
} catch (e) {
|
||||
console.log('failed to log this message properly:', message, fields);
|
||||
console.error(e);
|
||||
|
||||
Reference in New Issue
Block a user