Skip to content

Commit

Permalink
fix printf
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Oct 8, 2024
1 parent 7dc479c commit 891c2e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tconnectsync/sync/tandemsource/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def process(self, time_start, time_end):
if c.enabled():
logger.info("%s is enabled from features %s" % (clazz, self.features))
ns_entries = c.process(events, events_first_time, events_last_time)
processed_count += c.write(ns_entries)
w = c.write(ns_entries)
if w:
processed_count += w
else:
logger.info("Skipping %s, is not enabled from features %s" % (clazz, self.features))

Expand All @@ -95,6 +97,6 @@ def process(self, time_start, time_end):
else:
logger.info("Skipping %s, is not enabled from features %s" % (updater_class.__name__, self.features))

logger.info("Processed %d events. Last event ID seen: %d" % (processed_count, last_event_id))
logger.info("Processed %d events. Last event ID seen: %d" % (processed_count if processed_count else 0, last_event_id if last_event_id else -1))
return processed_count, last_event_id

0 comments on commit 891c2e2

Please sign in to comment.