Adjust log-level for auth middleware

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-08-26 00:42:38 +01:00
parent 31f104f51b
commit bf9b0ec8d0

View File

@ -14,7 +14,7 @@ module.exports = async function authCheck(req, res, next) {
var result = (await utils.isAuthed(uuid)) || false; var result = (await utils.isAuthed(uuid)) || false;
if (!result) { if (!result) {
req.isAuthed = false; req.isAuthed = false;
log.out("authMiddlewares: User !isAuthed", "warn"); log.out("authMiddlewares: User !isAuthed", "dbug");
} else { } else {
req.isAuthed = true; req.isAuthed = true;
log.out("authMiddlewares: User isAuthed", "dbug"); log.out("authMiddlewares: User isAuthed", "dbug");