diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-16 02:27:25 +0400 |
---|---|---|
committer | root <root@ContinuousIntegration.(none)> | 2011-07-16 02:28:05 +0400 |
commit | fb492b2b625d08718391f96dfc0f5e0729b8afdd (patch) | |
tree | c70971c7edba8a380e3e4ac6281dc88092e1f9d5 /lib | |
parent | 5d64611f2bb69cce56e05ec7ffb52cd5eae79f1a (diff) |
Shorter backtrace in the SQL logs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/log_overrider.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log_overrider.rb b/lib/log_overrider.rb index b699e1972..2c5b1a61d 100644 --- a/lib/log_overrider.rb +++ b/lib/log_overrider.rb @@ -107,7 +107,7 @@ module ActiveRecord log_string = "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}'" cleaned_trace = Rails.backtrace_cleaner.clean(caller) - log_string << "backtrace_hash=#{cleaned_trace.hash} binds='#{binds}' application_backtrace='#{cleaned_trace.inspect}'" + log_string << "backtrace_hash=#{cleaned_trace.hash} binds='#{binds}' application_backtrace='#{cleaned_trace[0..2].inspect}'" info log_string end |