From eb7f5f6b3e833b2000089451d2a57595045ec880 Mon Sep 17 00:00:00 2001 From: David Teller Date: Fri, 25 Feb 2022 17:59:34 +0100 Subject: [PATCH] Reduce stackspam (#237) This should cut a lot on the noise in logs. --- src/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index c61c269..a74d688 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -327,6 +327,10 @@ function patchMatrixClientForConciseExceptions() { enumerable: false, }); } + if (!LogService.level.includes(LogLevel.TRACE)) { + // Remove stack trace to reduce impact on logs. + error.stack = ""; + } return cb(error, response, resBody); }) });