upd prod & morgan

This commit is contained in:
Narul Hidayah
2026-06-23 23:32:33 +09:00
parent d73ac9fbbd
commit f8888fd9a1
2 changed files with 3 additions and 9 deletions

View File

@ -4,12 +4,6 @@ import express from 'express';
export class MorganHelper {
static setup(app: express.Application) {
if (process.env.NODE_ENV == 'prod') {
app.use(morgan(config.get('server.morgan'), {
skip: function (req, res) { return res.statusCode < 400 }
}));
} else {
app.use(morgan(config.get('server.morgan')));
}
app.use(morgan(config.get('server.morgan')));
}
}
}