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

Fix examples in ActiveSupport::LogSubscriber docs #34835

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

gmcgibbon
Copy link
Member

Summary

In #34707, I noticed that the example subscribers in ActiveSupport::LogSubscriber don't actually log their output strings. This fixes that.

@@ -47,8 +47,8 @@ module ActiveSupport
# if exception
# exception_object = event.payload[:exception_object]
#
# "[ERROR] #{event.payload[:name]}: #{exception.join(', ')} " \
# "(#{exception_object.backtrace.first})"
# info "[ERROR] #{event.payload[:name]}: #{exception.join(', ')} " \
Copy link
Contributor

Choose a reason for hiding this comment

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

What about setting this example as error instead of info?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense. I'll change it 👍

@gmcgibbon gmcgibbon force-pushed the fix_examples_in_log_subscriber branch from 05b5dc9 to 1b402a5 Compare January 2, 2019 01:28
Copy link
Contributor

@xlts xlts left a comment

Choose a reason for hiding this comment

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

Thx @gmcgibbon, I totally missed that in my PR. Looks sweet now

@eileencodes eileencodes merged commit b3aa86c into rails:master Jan 2, 2019
@gmcgibbon gmcgibbon deleted the fix_examples_in_log_subscriber branch January 2, 2019 21:31
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.

None yet

4 participants