add a bit more logging
This commit is contained in:
parent
23fa435590
commit
5b7fddddaf
2 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue