Reduce stackspam (#237)

This should cut a lot on the noise in logs.
This commit is contained in:
David Teller 2022-02-25 17:59:34 +01:00 committed by GitHub
parent 17dd0aa173
commit eb7f5f6b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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