summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-27 10:18:24 +0100
committerRory& <root@rory.gay>2026-02-27 11:10:10 +0100
commit7fefb3545882e41fa30a1d28d4fa91eb6993557c (patch)
treec7ffec7c387d6a77b5b66f59a6c6b354a3f5995d /src/util
parentmove mediaServer.start() into try catch (diff)
downloadserver-ts-7fefb3545882e41fa30a1d28d4fa91eb6993557c.tar.xz
Option to disable logging route registrations
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util/lambert-server/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/lambert-server/Server.ts b/src/util/util/lambert-server/Server.ts

index 47cc457b..481c0f65 100644 --- a/src/util/util/lambert-server/Server.ts +++ b/src/util/util/lambert-server/Server.ts
@@ -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) {