mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-01-19 18:14:45 +00:00
Remove apache-like logging (handled by reverse proxy)
This commit is contained in:
parent
56da5892b1
commit
5be2397fe5
|
|
@ -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 {
|
||||
|
|
|
|||
7
index.js
7
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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue