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); }) });