Merge pull request #403 from Fallenbagel/fix-log-format-jellyfin-auth

fix(logs): jellyfin auth error now has the severity `warn` consistent with local login
This commit is contained in:
Fallenbagel
2023-06-12 01:42:04 +05:00
committed by GitHub

View File

@@ -380,7 +380,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
return res.status(200).json(user?.filter() ?? {}); return res.status(200).json(user?.filter() ?? {});
} catch (e) { } catch (e) {
if (e.message === 'Unauthorized') { if (e.message === 'Unauthorized') {
logger.info( logger.warn(
'Failed login attempt from user with incorrect Jellyfin credentials', 'Failed login attempt from user with incorrect Jellyfin credentials',
{ {
label: 'Auth', label: 'Auth',