Skip to content

Commit

Permalink
refactor(authapi): temporarily log the auth error and the client ip
Browse files Browse the repository at this point in the history
Attempt to debug any issues caused by #470
  • Loading branch information
fallenbagel committed Jun 5, 2024
1 parent 4757f1c commit 857844d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/api/jellyfin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class JellyfinAPI extends ExternalAPI {
Password?: string,
ClientIP?: string
): Promise<JellyfinLoginResponse> {
logger.debug('Client IP: ', ClientIP);
try {
const headers = ClientIP
? {
Expand All @@ -146,6 +147,7 @@ class JellyfinAPI extends ExternalAPI {

return authResponse;
} catch (e) {
logger.debug(e);
const status = e.response?.status;

const networkErrorCodes = new Set([
Expand Down

0 comments on commit 857844d

Please sign in to comment.