mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-28 21:25:22 +00:00
Option to disable logging route registrations
This commit is contained in:
@@ -65,7 +65,7 @@ for (const type of Object.values(ReportMenuTypeNames)) {
|
||||
res.sendFile(path.join(__dirname, "..", "..", "..", "..", "assets", "temp_report_menu_responses", `${type}.json`));
|
||||
},
|
||||
);
|
||||
console.log(`[Server] Route /reporting/menu/${type} registered (reports).`);
|
||||
if (process.env.LOG_ROUTES !== "false") console.log(`[Server] Route /reporting/menu/${type} registered (reports).`);
|
||||
router.post(
|
||||
`/${type}`,
|
||||
route({
|
||||
@@ -201,6 +201,6 @@ for (const type of Object.values(ReportMenuTypeNames)) {
|
||||
throw new HTTPError("Validation success - implementation TODO", 418);
|
||||
},
|
||||
);
|
||||
console.log(`[Server] Route /reporting/${type} registered (reports).`);
|
||||
if (process.env.LOG_ROUTES !== "false") console.log(`[Server] Route /reporting/${type} registered (reports).`);
|
||||
}
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user