From 5be2397fe5f07c2cfdde6147132a002ac5281eaf Mon Sep 17 00:00:00 2001 From: Chord Date: Fri, 10 Jan 2020 16:12:34 +0100 Subject: [PATCH] Remove apache-like logging (handled by reverse proxy) --- api/util.js | 1 - index.js | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/api/util.js b/api/util.js index a062a3d..9541391 100644 --- a/api/util.js +++ b/api/util.js @@ -135,7 +135,6 @@ export async function fetch_user_middleware(req, res, next, id) { } async function sessionRequired(req, res, next) { - console.log("SESSION REQUIRED") if (!req.session || !req.session.account_id) { res.status(403).json({message: 'session required'}) } else { diff --git a/index.js b/index.js index b52a680..cc96eb4 100644 --- a/index.js +++ b/index.js @@ -26,12 +26,7 @@ const BASE_URL = 'https://play.psforever.net'; const app = express(); -// apache logging on web requests -if (MODE !== 'production') { - app.use(morgan('dev')); -} else { - app.use(morgan('combined')); -} +app.use(morgan('dev')); if (process.env.TRUST_PROXY) { console.log("Trusting proxy")