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 logger from '../logger';
|
||||
|
||||
interface RadarrMovieOptions {
|
||||
title: string;
|
||||
@@ -96,6 +97,11 @@ class RadarrAPI {
|
||||
|
||||
return response.data;
|
||||
} 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}`);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user