Only enable logger when DEBUG=true

This commit is contained in:
Henry Heng 2023-07-03 23:05:51 +01:00 committed by GitHub
parent c0f36387a7
commit 7ee2b1194d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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() {