-
Notifications
You must be signed in to change notification settings - Fork 36
(fix): add more debug logging. remove extra current_batch set #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Please add a better Summary / Test Plan. You have taken the template values right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conditionally approved on addressing provided feedback.
optimizely/event/event_processor.py
Outdated
@@ -222,7 +222,7 @@ def flush(self): | |||
|
|||
def _flush_queue(self): | |||
""" Flushes event_queue by dispatching events. """ | |||
|
|||
self.logger.debug('Flushing the queue.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it will be better to look up if events are there and say nothing to flush if no events and then say flushing the queue if there are events. Also, perhaps number of user events flushed will be useful.
5 similar comments
optimizely/event/event_processor.py
Outdated
@@ -267,6 +270,7 @@ def _add_to_batch(self, user_event): | |||
user_event: UserEvent Instance. | |||
""" | |||
if self._should_split(user_event): | |||
self.logger.debug('Flush on split.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. Flushing and not flush.
…bug where current_batch was being reset without a lock.
Summary
Test plan