Use the rails backtrace cleaner

This commit is contained in:
Raphael Sofaer 2011-07-04 15:00:31 -07:00
parent b645a77be9
commit e34809c8ed
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,6 @@ before_script:
- "rake db:create"
- "rake db:schema:load"
- "rspec spec --tag fixture"
- 'rails runner "puts ActiveRecord::Base.connection.collation"'
script: "bundle exec rake travis"
env: "TRAVIS=true"
notifications:

View file

@ -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