Skip to content

Add log messages for enqueuing messages#108

Closed
daqo wants to merge 2 commits into
segmentio:masterfrom
zeemee:feature/add-logger-to-client
Closed

Add log messages for enqueuing messages#108
daqo wants to merge 2 commits into
segmentio:masterfrom
zeemee:feature/add-logger-to-client

Conversation

@daqo

@daqo daqo commented Jul 6, 2016

Copy link
Copy Markdown

This adds logging to message enqueuing when queue is full hinting users that events are being dropped.

Dave Qorashi added 2 commits June 29, 2016 15:48
* While running specs in Ruby 2.2.3, three of specs failed. All of them
are related to DateTime usages. Converting the time to UTC helps those specs
to pass.
* Update spec code to use new RSpec syntax
Add logging features to message enqueuing method. When the queue is 70%
full, log warns and if it's full log an error, notifying user.
@daqo daqo changed the title Feature/add logger to client Add log messages for enqueuing messages Jul 6, 2016
if is_full
msg = 'Queue is full, dropping events. ' \
'Please supply :max_queue_size value when initializing the client.'
logger.error(msg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should just be a warn, not error (it is recoverable after all).

@f2prateek

Copy link
Copy Markdown
Contributor

Tracking Internally: https://segment.atlassian.net/browse/LIB-113

@rohitpaulk

Copy link
Copy Markdown
Collaborator

Rebased, #145.

@rohitpaulk rohitpaulk closed this Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants