fix: added more logging

pull/3757/head
Ryan Clough 5 months ago
parent e8d7decabe
commit fe9fa7b36c

@ -56,7 +56,6 @@ class ExternalAPI {
},
protocol: port == 443 ? 'https' : 'http',
};
logger.debug(`Using proxy config %o`, config.proxy);
}
this.axios = axios.create(config);

@ -1,5 +1,6 @@
import ExternalAPI from '@server/api/externalapi';
import cacheManager from '@server/lib/cache';
import logger from '@server/logger';
import { sortBy } from 'lodash';
import type {
TmdbCollection,
@ -264,6 +265,7 @@ class TheMovieDb extends ExternalAPI {
return data;
} catch (e) {
logger.error('[TMDB] Failed to fetch movie details $o', e);
throw new Error(`[TMDB] Failed to fetch movie details: ${e.message}`);
}
};

Loading…
Cancel
Save