Log nur wenn kein 200

This commit is contained in:
Carsten Keller 2024-02-17 21:55:34 +01:00
parent e00d71109f
commit 890207d1cf
Signed by: carsten
GPG Key ID: F120DCD2D6C1CC54

View File

@ -30,7 +30,9 @@ export class RequestHandler {
} else {
res.statusCode = 403;
}
console.log(req.url, res.statusCode);
if(res.statusCode != 200) {
console.log(req.url, res.statusCode);
}
res.end();
}
}