mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Small logging, and manual changes II
This commit is contained in:
parent
3028a6f013
commit
c1e71ee014
3 changed files with 5 additions and 16 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue