diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 02:00:31 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-05 02:00:42 +0400 |
commit | e34809c8eda9c8d6398071ced4f719d47e30a72f (patch) | |
tree | 309c3c9d3c41332ba5589dae5e8db7669b2f27c2 /lib | |
parent | b645a77be93382d3980544c5e2ae9c971df36425 (diff) |
Use the rails backtrace cleaner
Diffstat (limited to 'lib')
-rw-r--r-- | lib/log_overrider.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/log_overrider.rb b/lib/log_overrider.rb index 0c0e5991e..b699e1972 100644 --- a/lib/log_overrider.rb +++ b/lib/log_overrider.rb @@ -106,7 +106,8 @@ module ActiveRecord end log_string = "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}'" - log_string << "caller_hash=#{caller.hash} binds='#{binds}' caller_with_diaspora='#{caller.grep(/diaspora\/(app|lib)/).join(';')}'" + cleaned_trace = Rails.backtrace_cleaner.clean(caller) + log_string << "backtrace_hash=#{cleaned_trace.hash} binds='#{binds}' application_backtrace='#{cleaned_trace.inspect}'" info log_string end |