aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2018-12-31 15:17:40 -0500
committerGannon McGibbon <gannon.mcgibbon@gmail.com>2019-01-01 20:27:54 -0500
commit1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb (patch)
tree2d6d951b0b5164ab2f11cc677c122e8937df3505 /activesupport
parent710e0ffc5a77b338da0a1a0e21d97b514315e1f6 (diff)
downloadrails-1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb.tar.gz
rails-1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb.tar.bz2
rails-1b402a510aeac38b40c0bc6c9b9dfb1cc61c71cb.zip
Fix examples in ActiveSupport::LogSubscriber docs
[ci skip]
Diffstat (limited to 'activesupport')
-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