aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-01-02 09:39:10 -0500
committerGitHub <noreply@github.com>2019-01-02 09:39:10 -0500
commitb3aa86ca7ed28f2e9ab858fe1689010d39426018 (patch)
tree5c88633122f30e5f288d8f2f8ea13bc01d02e2ad
parentfb6743acc58495a63bca54221da9f38ce8227d3a (diff)
parent1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb (diff)
downloadrails-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
-rw-r--r--activesupport/lib/active_support/log_subscriber.rb6
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