mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-25 03:45:33 +00:00
Option to disable logging route registrations
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user