Enhance logging for unauthorized access and task/tag operations; remove unused debug statement

This commit is contained in:
2025-01-30 22:14:25 +01:00
parent 23a6d9b10f
commit 2a7005f53c
3 changed files with 3 additions and 3 deletions

View File

@@ -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}`);
}
};