Log stacktrace lines from diaspora/lib as well as diaspora/app
This commit is contained in:
parent
6df0a25327
commit
10805c1187
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ module ActiveRecord
|
|||
}.inspect
|
||||
end
|
||||
|
||||
info "event=sql name='#{payload[:name]}' ms=#{event.duration} query='#{sql}' caller_hash=#{caller.hash} binds='#{binds}' caller_with_diaspora='#{caller.grep(/diaspora\/app/).join(';')}'"
|
||||
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(';')}'"
|
||||
info log_string
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue