Lower logging volume

This commit is contained in:
Jonathan Cremin 2019-01-13 17:48:27 +00:00
parent d2178c8ee6
commit 8c69700b7f
5 changed files with 10 additions and 11 deletions

4
app.js
View file

@ -53,7 +53,9 @@ app.use(async (ctx, next) => {
app.use(session(app));
app.use(redis.middleware());
app.use(logger());
if (process.env.DEBUG === 'true') {
app.use(logger());
}
app.use(compress());
app.use(bodyparser());