upd prod & morgan

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

View File

@ -27,7 +27,7 @@
"password": "y0BZQ6of14OULYnb", "password": "y0BZQ6of14OULYnb",
"database": "saude_production", "database": "saude_production",
"synchronize": true, "synchronize": true,
"logging": false "logging": true
}, },
"service": { "service": {
"file": "https://histl.hngv/api/f/" "file": "https://histl.hngv/api/f/"

View File

@ -4,12 +4,6 @@ import express from 'express';
export class MorganHelper { export class MorganHelper {
static setup(app: express.Application) { 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')));
} }
} }
}