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")