Small logging, and manual changes II

This commit is contained in:
YourFriendlyNeighborhoodDealer 2018-12-18 10:52:28 +01:00
parent 3028a6f013
commit c1e71ee014
3 changed files with 5 additions and 16 deletions

View file

@ -214,9 +214,9 @@ function Log(req, toFile, sc) {
var ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress;
var logEntry = "[RSND]: " + ip + ", " + req.headers['user-agent'] +
" " + req.method + " ";
logEntry += req.url;
if (sc == 404)
logEntry += " " + sc;
logEntry += sc + " ";
logEntry += req.url;
var color = logger.GetColor("green");
for (var i = 0; i < highlights.length; i++)
if (req.url.toLowerCase().includes(highlights[i])) {