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

Use same logging rules as ActiveRecord #76

Merged
merged 7 commits into from
Apr 27, 2015
Merged

Use same logging rules as ActiveRecord #76

merged 7 commits into from
Apr 27, 2015

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Mar 31, 2015

Hey, thanks for this awesome gem 👍

This commit reduces logging noise by using the same rules as ActiveRecord uses.

event.payload[:name] = name
super(event)
if IGNORE_PAYLOAD_NAMES.include?(name)
self.class.runtime += event.duration
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't you just want to call super here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

mnelson added a commit that referenced this pull request Apr 27, 2015
Use same logging rules as ActiveRecord
@mnelson mnelson merged commit c2b7e52 into instacart:master Apr 27, 2015
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.

3 participants