mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 21:17:15 +03:00
Added log colors and method name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const log = require('../utils/logger.js'); // log not logger to not interfere with function name
|
||||
|
||||
module.exports = function logger (req, res, next) {
|
||||
log.info('Request recieved: ' + req.url);
|
||||
log.info("Request recieved: " + req.method + " " + req.url);
|
||||
next();
|
||||
}
|
||||
Reference in New Issue
Block a user