mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Add logging for failed custom condition json
This commit is contained in:
parent
efe9a15f72
commit
b5c52ac71e
1 changed files with 3 additions and 0 deletions
|
@ -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']):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue