From 19311e683c949457bf8dd8d4310d39f14a40f043 Mon Sep 17 00:00:00 2001 From: yumeko Date: Sat, 22 Jul 2023 22:12:52 +0300 Subject: [PATCH] Dump to console the error data associated with logger error calls. --- packages/backend/src/services/logger.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/services/logger.ts b/packages/backend/src/services/logger.ts index 146dae2ea8..330d275029 100644 --- a/packages/backend/src/services/logger.ts +++ b/packages/backend/src/services/logger.ts @@ -115,6 +115,10 @@ export default class Logger { console.log(important ? chalk.bold(log) : log); + if (level === "error" && data !== null) { + console.log(data); + } + if (store) { if (this.syslogClient) { const send =