Lower logging volume
This commit is contained in:
parent
d2178c8ee6
commit
8c69700b7f
5 changed files with 10 additions and 11 deletions
4
app.js
4
app.js
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue