summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index a3e6f23b..03c68af1 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -4,6 +4,7 @@ import { Server, ServerOptions } from "lambert-server"; import morgan from "morgan"; import path from "path"; import { red } from "picocolors"; +import { PluginConfig } from "../util"; import { Authentication, CORS } from "./middlewares/"; import { BodyParser } from "./middlewares/BodyParser"; import { ErrorHandler } from "./middlewares/ErrorHandler"; @@ -40,7 +41,7 @@ export class FosscordServer extends Server { await initEvent(); await initInstance(); - let logRequests = process.env["LOG_REQUESTS"] != undefined; + let logRequests = "LOG_REQUESTS" in process.env; if (logRequests) { this.app.use( morgan("combined", {