Fixed: Proper warnings for missing data in sonarr and radarr
This commit is contained in:
parent
518ea6c384
commit
752073d590
2 changed files with 16 additions and 5 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue