refactor(authapi): temporarily log the auth error and the client ip

Attempt to debug any issues caused by #470
This commit is contained in:
fallenbagel
2024-06-05 16:32:37 +05:00
parent 4757f1c3e5
commit 857844d058

View File

@@ -126,6 +126,7 @@ class JellyfinAPI extends ExternalAPI {
Password?: string,
ClientIP?: string
): Promise<JellyfinLoginResponse> {
logger.debug('Client IP: ', ClientIP);
try {
const headers = ClientIP
? {
@@ -146,6 +147,7 @@ class JellyfinAPI extends ExternalAPI {
return authResponse;
} catch (e) {
logger.debug(e);
const status = e.response?.status;
const networkErrorCodes = new Set([