diff --git a/server/api/jellyfin.ts b/server/api/jellyfin.ts index f23e9ace..99ac91ea 100644 --- a/server/api/jellyfin.ts +++ b/server/api/jellyfin.ts @@ -133,6 +133,11 @@ class JellyfinAPI extends ExternalAPI { } : {}; + logger.debug(`Logging in to Jellyfin server: ${this.jellyfinHost}`, { + label: 'Jellyfin API', + clientIp: ClientIP, + }); + const authResponse = await this.post( '/Users/AuthenticateByName', { @@ -146,6 +151,12 @@ class JellyfinAPI extends ExternalAPI { return authResponse; } catch (e) { + logger.error('Failed to login to Jellyfin server', { + label: 'Jellyfin API', + clientIp: ClientIP, + error: e, + }); + const status = e.response?.status; const networkErrorCodes = new Set([