Only enable logger when DEBUG=true
This commit is contained in:
parent
c0f36387a7
commit
7ee2b1194d
|
|
@ -61,7 +61,7 @@ export class App {
|
||||||
this.app = express()
|
this.app = express()
|
||||||
|
|
||||||
// Add the expressRequestLogger middleware to log all requests
|
// Add the expressRequestLogger middleware to log all requests
|
||||||
this.app.use(expressRequestLogger)
|
if (process.env.DEBUG === 'true') this.app.use(expressRequestLogger)
|
||||||
}
|
}
|
||||||
|
|
||||||
async initDatabase() {
|
async initDatabase() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue