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

@ -27,7 +27,7 @@
"password": "y0BZQ6of14OULYnb",
"database": "saude_production",
"synchronize": true,
"logging": false
"logging": true
},
"auth": {
"refresh_token_lifetime_day": 30,

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')));
}
}
}