diff --git a/.travis.yml b/.travis.yml index da3c29b57..0d48e2242 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: 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