add a bit more logging

This commit is contained in:
Nicholas St. Germain 2019-04-19 12:54:16 -05:00
parent 23fa435590
commit 5b7fddddaf
2 changed files with 8 additions and 2 deletions

View file

@ -144,7 +144,10 @@ class OmbiAPI(object):
}
)
self.dbmanager.write_points(influx_payload)
if influx_payload:
self.dbmanager.write_points(influx_payload)
else:
self.logger.debug("Empty dataset for ombi module. Discarding...")
def get_request_counts(self):
now = datetime.now(timezone.utc).astimezone().isoformat()

View file

@ -188,4 +188,7 @@ class SonarrAPI(object):
}
}
)
self.dbmanager.write_points(influx_payload)
if influx_payload:
self.dbmanager.write_points(influx_payload)
else:
self.logger.debug("No data to send to influx for sonarr instance, discarding.")