Enhance logging for unauthorized access and task/tag operations; remove unused debug statement
This commit is contained in:
@@ -6,7 +6,7 @@ const auth = (req, res, next) => {
|
||||
return next();
|
||||
} else {
|
||||
res.status(401).send('Authentication required.');
|
||||
logger.error('Unauthorized access attempted from IP:', req.ip);
|
||||
logger.error(`Unauthorized access attempted from IP: ${req.ip}`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user