当发出GET请求时,显示Sunspot和solr所花费的时间
Started GET "/collections/AA1/items/001" for 127.0.0.1 at 2016-03-07 15:11:00 +1100
...
Completed 200 OK in 220.1ms (Views: 139.9ms | ActiveRecord: 59.4ms | Solr: 583.7ms)
但是,当发出PUT请求时,Sunspot和solr所用的时间会显示在各个子行中,但不会显示在最后
Started PUT "/collections/AA1/items/001" for 127.0.0.1 at 2016-03-07 15:10:59 +1100
...
SOLR Request (456.0ms) ...
...
SOLR Request (127.8ms) ...
...
Completed 302 Found in 1192.9ms (ActiveRecord: 211.4ms)
这是一个问题,因为在生产中进行日志记录时,不会显示子行。
如何让Sunspot和Solr在最后一行列出时间,如
Completed 302 Found in 1192.9ms (ActiveRecord: 211.4ms | Solr: 123.4 ms)