Update QueueProcessorService.ts
This commit is contained in:
parent
2492f4e81e
commit
8935eaec3b
1 changed files with 13 additions and 5 deletions
|
@ -37,11 +37,19 @@ export class QueueProcessorService {
|
||||||
|
|
||||||
public start() {
|
public start() {
|
||||||
function renderError(e: Error): any {
|
function renderError(e: Error): any {
|
||||||
return {
|
if (e) { // 何故かeがundefinedで来ることがある
|
||||||
stack: e.stack,
|
return {
|
||||||
message: e.message,
|
stack: e.stack,
|
||||||
name: e.name,
|
message: e.message,
|
||||||
};
|
name: e.name,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
stack: '?',
|
||||||
|
message: '?',
|
||||||
|
name: '?',
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const systemLogger = this.logger.createSubLogger('system');
|
const systemLogger = this.logger.createSubLogger('system');
|
||||||
|
|
Loading…
Reference in a new issue