Skip to content
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

changing log verbosity #243

Merged
merged 1 commit into from
Sep 12, 2016
Merged

changing log verbosity #243

merged 1 commit into from
Sep 12, 2016

Conversation

Sof31t
Copy link
Contributor

@Sof31t Sof31t commented Sep 6, 2016

for production environment, we dont need to know how much messages we have received. It pollutes the logs specially when we can collect these informations differently (we format logs in our own way)

for production environment, we dont need to know how much messages we have received. It pollutes the logs specially when we can collect these informations differently (we format logs in our own way)
@@ -32,7 +32,7 @@ def fetch(queue, available_processors)
limit = batch ? FETCH_LIMIT : available_processors

if (sqs_msgs = Array(receive_messages(queue, limit))).any?
logger.info { "Found #{sqs_msgs.size} messages for '#{queue}'" }
logger.debug { "Found #{sqs_msgs.size} messages for '#{queue}'" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mariokostelac WDYT about it? I kind of like this change, but it can mislead people that were used to these messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@phstc @mariokostelac Is it really useful in production environment ? changing it to debug will not affect development environment, in the other hand, it will help a lot of people who are using paying solutions to manage logs ;-)
Not to mention the fact that we can analyze all the trafic for the last 2 weeks in the Amazon monitoring tab. And if we really want this kind of repetitive logs, it is very easy to add it in the worker.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Sof31t I'm in favor of your change. I'm just wondering about people that are used to those logs, they might think something wrong is going on if they stop seeing it after a bump.

@Sof31t
Copy link
Contributor Author

Sof31t commented Sep 8, 2016

any news guys ? @phstc @mariokostelac

@phstc phstc merged commit 8fd0b81 into ruby-shoryuken:master Sep 12, 2016
@phstc
Copy link
Collaborator

phstc commented Sep 12, 2016

@Sof31t added to master! Thanks 🍻

@Sof31t Sof31t deleted the patch-1 branch September 12, 2016 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants