diff --git a/console.js b/console.js index 831b42e..4733fda 100644 --- a/console.js +++ b/console.js @@ -13,6 +13,8 @@ const server = http.createServer((req, res) => { return; } + var id = req.url.substring(1); + let data = ""; req.on('data', chunk => { @@ -20,7 +22,7 @@ const server = http.createServer((req, res) => { }) req.on('end', () => { - console.log(`[${time()}]${data}`); + console.log(`[${time()}][${id}]${data}`); res.writeHead(200); res.end(); })