We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8f2c2 commit b96c996Copy full SHA for b96c996
backend/app.js
@@ -75,7 +75,7 @@ app.use(function (err, req, res, next) {
75
76
// Not every error is worth logging - but this is good for now until it gets annoying.
77
if (typeof err.stack !== 'undefined' && err.stack) {
78
- if (process.env.NODE_ENV === 'development') {
+ if (process.env.NODE_ENV === 'development' || process.env.DEBUG) {
79
log.debug(err.stack);
80
} else if (typeof err.public == 'undefined' || !err.public) {
81
log.warn(err.message);
0 commit comments