Fixed: Proper warnings for missing data in sonarr and radarr

This commit is contained in:
samwiseg0 2022-01-21 00:14:15 -05:00
parent 518ea6c384
commit 752073d590
2 changed files with 16 additions and 5 deletions

View file

@ -95,7 +95,10 @@ class SonarrAPI(object):
}
)
self.dbmanager.write_points(influx_payload)
if influx_payload:
self.dbmanager.write_points(influx_payload)
else:
self.logger.warning("No data to send to influx for sonarr-calendar instance, discarding.")
def get_queue(self):
influx_payload = []
@ -178,4 +181,4 @@ class SonarrAPI(object):
if influx_payload:
self.dbmanager.write_points(influx_payload)
else:
self.logger.debug("No data to send to influx for sonarr instance, discarding.")
self.logger.warning("No data to send to influx for sonarr-queue instance, discarding.")