mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(services): improve logging for adding movies to Radarr
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import Axios, { AxiosInstance } from 'axios';
|
import Axios, { AxiosInstance } from 'axios';
|
||||||
|
import logger from '../logger';
|
||||||
|
|
||||||
interface RadarrMovieOptions {
|
interface RadarrMovieOptions {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -96,6 +97,11 @@ class RadarrAPI {
|
|||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
logger.error('Something went wrong adding a movie to Radarr', {
|
||||||
|
label: 'Radarr',
|
||||||
|
message: e.message,
|
||||||
|
options,
|
||||||
|
});
|
||||||
throw new Error(`[Radarr] Failed to add movie: ${e.message}`);
|
throw new Error(`[Radarr] Failed to add movie: ${e.message}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user