From 6c1ee830a183f89bb1fe96a181a7d61684e23b22 Mon Sep 17 00:00:00 2001 From: sct Date: Mon, 14 Dec 2020 08:17:38 +0000 Subject: [PATCH] fix(services): improve logging for adding movies to Radarr --- server/api/radarr.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/api/radarr.ts b/server/api/radarr.ts index e75e7c521..fe22e72c9 100644 --- a/server/api/radarr.ts +++ b/server/api/radarr.ts @@ -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}`); } };