Skip to content

Commit ad89f39

Browse files
author
Joe Alves
committed
Making route logging not display in testing; guaranteed to be a controversial change for sure
1 parent 11a17f9 commit ad89f39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generated/server/app/configure/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ module.exports = function (app, db) {
1616

1717
// Logging middleware, set as application
1818
// variable inside of server/app/configure/app-variables.js
19-
app.use(app.getValue('log'));
19+
if (process.env.NODE_ENV !== 'testing') {
20+
app.use(app.getValue('log'));
21+
}
2022

2123
require('./authentication')(app, db);
2224

0 commit comments

Comments
 (0)