Use the rails backtrace cleaner
This commit is contained in:
parent
b645a77be9
commit
e34809c8ed
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,6 @@ before_script:
|
||||||
- "rake db:create"
|
- "rake db:create"
|
||||||
- "rake db:schema:load"
|
- "rake db:schema:load"
|
||||||
- "rspec spec --tag fixture"
|
- "rspec spec --tag fixture"
|
||||||
- 'rails runner "puts ActiveRecord::Base.connection.collation"'
|
|
||||||
script: "bundle exec rake travis"
|
script: "bundle exec rake travis"
|
||||||
env: "TRAVIS=true"
|
env: "TRAVIS=true"
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,8 @@ module ActiveRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
log_string = "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}'"
|
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
|
info log_string
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue