Skip to content

Commit b96c996

Browse files
committed
Log more info for internal errors in debug mode
1 parent fb8f2c2 commit b96c996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ app.use(function (err, req, res, next) {
7575

7676
// Not every error is worth logging - but this is good for now until it gets annoying.
7777
if (typeof err.stack !== 'undefined' && err.stack) {
78-
if (process.env.NODE_ENV === 'development') {
78+
if (process.env.NODE_ENV === 'development' || process.env.DEBUG) {
7979
log.debug(err.stack);
8080
} else if (typeof err.public == 'undefined' || !err.public) {
8181
log.warn(err.message);

0 commit comments

Comments
 (0)