1
0
forked from mirror/misskey

Update QueueProcessorService.ts

This commit is contained in:
syuilo 2022-11-11 16:55:16 +09:00
parent 2492f4e81e
commit 8935eaec3b

View File

@ -37,11 +37,19 @@ export class QueueProcessorService {
public start() { public start() {
function renderError(e: Error): any { function renderError(e: Error): any {
if (e) { // 何故かeがundefinedで来ることがある
return { return {
stack: e.stack, stack: e.stack,
message: e.message, message: e.message,
name: e.name, name: e.name,
}; };
} else {
return {
stack: '?',
message: '?',
name: '?',
};
}
} }
const systemLogger = this.logger.createSubLogger('system'); const systemLogger = this.logger.createSubLogger('system');