Log stacktrace lines from diaspora/lib as well as diaspora/app

This commit is contained in:
Raphael Sofaer 2011-02-12 15:42:50 -08:00
parent 6df0a25327
commit 10805c1187

View file

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