Adds error stack information in prod environment for certificates

This commit is contained in:
chaptergy
2020-10-08 15:30:13 +02:00
parent 3fec135fe5
commit 07e78aec48
5 changed files with 5 additions and 5 deletions

View File

@ -66,7 +66,7 @@ app.use(function (err, req, res, next) {
}
};
if (process.env.NODE_ENV === 'development') {
if (process.env.NODE_ENV === 'development' || (req.baseUrl + req.path).includes('nginx/certificates')) {
payload.debug = {
stack: typeof err.stack !== 'undefined' && err.stack ? err.stack.split('\n') : null,
previous: err.previous