Skip to content

Commit

Permalink
finally got to debug replacing the mock logger
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaszurkan-optimizely committed Dec 12, 2019
1 parent c66db1b commit a9a15ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions optimizely/event/event_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,13 @@ def _run(self):
self._get_time(self.flush_interval.total_seconds())

try:
interval = self._get_time(self.flush_interval.total_seconds()) - self._get_time()
interval = self.flushing_interval_deadline - self._get_time()
item = self.event_queue.get(True, interval)

except item is None:
if item is None:
continue

except queue.Empty:
continue

if item == self._SHUTDOWN_SIGNAL:
Expand Down

0 comments on commit a9a15ac

Please sign in to comment.