diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-01-02 09:39:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-02 09:39:10 -0500 |
commit | b3aa86ca7ed28f2e9ab858fe1689010d39426018 (patch) | |
tree | 5c88633122f30e5f288d8f2f8ea13bc01d02e2ad /activesupport/lib | |
parent | fb6743acc58495a63bca54221da9f38ce8227d3a (diff) | |
parent | 1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb (diff) | |
download | rails-b3aa86ca7ed28f2e9ab858fe1689010d39426018.tar.gz rails-b3aa86ca7ed28f2e9ab858fe1689010d39426018.tar.bz2 rails-b3aa86ca7ed28f2e9ab858fe1689010d39426018.zip |
Merge pull request #34835 from gmcgibbon/fix_examples_in_log_subscriber
Fix examples in ActiveSupport::LogSubscriber docs
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/log_subscriber.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/log_subscriber.rb b/activesupport/lib/active_support/log_subscriber.rb index 3c8fce222d..938cfdb914 100644 --- a/activesupport/lib/active_support/log_subscriber.rb +++ b/activesupport/lib/active_support/log_subscriber.rb @@ -16,7 +16,7 @@ module ActiveSupport # module ActiveRecord # class LogSubscriber < ActiveSupport::LogSubscriber # def sql(event) - # "#{event.payload[:name]} (#{event.duration}) #{event.payload[:sql]}" + # info "#{event.payload[:name]} (#{event.duration}) #{event.payload[:sql]}" # end # end # end @@ -47,8 +47,8 @@ module ActiveSupport # if exception # exception_object = event.payload[:exception_object] # - # "[ERROR] #{event.payload[:name]}: #{exception.join(', ')} " \ - # "(#{exception_object.backtrace.first})" + # error "[ERROR] #{event.payload[:name]}: #{exception.join(', ')} " \ + # "(#{exception_object.backtrace.first})" # else # # standard logger code # end |