Skip to content

Commit

Permalink
Merge pull request #36667 from gmcgibbon/clarify_logger_set_in_log_su…
Browse files Browse the repository at this point in the history
…bscriber_docs

Specify log subscribers need a logger set before they can receive events
  • Loading branch information
gmcgibbon committed Jul 16, 2019
2 parents da4e18c + 1719658 commit 85b422b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activesupport/lib/active_support/log_subscriber.rb
Expand Up @@ -29,6 +29,9 @@ module ActiveSupport
# subscriber, the line above should be called after your
# <tt>ActiveRecord::LogSubscriber</tt> definition.
#
# A logger also needs to be set with <tt>ActiveRecord::LogSubscriber.logger=</tt>.
# This is assigned automatically in a Rails environment.
#
# After configured, whenever a <tt>"sql.active_record"</tt> notification is published,
# it will properly dispatch the event
# (<tt>ActiveSupport::Notifications::Event</tt>) to the sql method.
Expand Down

0 comments on commit 85b422b

Please sign in to comment.