From b5c52ac71eda7270753a936726b648953fa71208 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 13 Mar 2018 20:45:41 -0700 Subject: [PATCH] Add logging for failed custom condition json --- plexpy/notification_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 50d9765f..e3ead880 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -211,6 +211,9 @@ def notify_custom_conditions(notifier_id=None, parameters=None): try: custom_conditions = json.loads(notifier_config['custom_conditions']) or [] except ValueError as e: + logger.error(u"Tautulli NotificationHandler :: Unable to parse custom condition: %s." % e) + logger.debug(u"Tautulli NotificationHandler :: Custom conditions json: %s " + % notifier_config['custom_conditions']) custom_conditions = [] if custom_conditions_logic or any(c for c in custom_conditions if c['value']):