Option to disable logging route registrations

This commit is contained in:
Rory&
2026-02-27 10:18:24 +01:00
parent 6090f414ce
commit 7fefb35458
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ export class Server {
// if (this.options.errorHandler) router.use(this.options.errorHandler);
this.app.use(path, <Router>router);
if (this.options.serverInitLogging) console.log(`[Server] Route ${path} registered`);
if (this.options.serverInitLogging && process.env.LOG_ROUTES !== "false") console.log(`[Server] Route ${path} registered`);
return router;
} catch (error) {