From d803ec3e3eb85b70ab52080167e75abfee9cbd59 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 4 Mar 2024 12:16:44 +0000 Subject: [PATCH] compact: false --- packages/backend/src/logger.ts | 2 +- packages/backend/src/queue/QueueProcessorService.ts | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/backend/src/logger.ts b/packages/backend/src/logger.ts index 7ebcd392f7..c6a0436c60 100644 --- a/packages/backend/src/logger.ts +++ b/packages/backend/src/logger.ts @@ -76,7 +76,7 @@ export default class Logger { if (data != null) { args.push(inspect(data, { depth: Infinity, - compact: true, + compact: false, breakLength: Infinity, colors: true, showHidden: false, diff --git a/packages/backend/src/queue/QueueProcessorService.ts b/packages/backend/src/queue/QueueProcessorService.ts index 32e8146f55..c2c953b9cf 100644 --- a/packages/backend/src/queue/QueueProcessorService.ts +++ b/packages/backend/src/queue/QueueProcessorService.ts @@ -70,14 +70,7 @@ function getJobInfo(job: Bull.Job | undefined, increment = false): string { function renderError(e: Error): any { if (e) { // 何故かeがundefinedで来ることがある - return { - ...Object.getOwnPropertyNames(e).reduce((acc, key) => { - //@ts-expect-error Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Error'. - acc[key] = e[key]; - return acc; - }, {} as Record), - stack: e.stack?.split('\n').map(s => s.trim()), - }; + return e; } else { return { stack: '?',