Logging time taken by Sunspot and solr in Rails -
when request made, time taken sunspot , solr displayed
started "/collections/aa1/items/001" 127.0.0.1 @ 2016-03-07 15:11:00 +1100 ... completed 200 ok in 220.1ms (views: 139.9ms | activerecord: 59.4ms | solr: 583.7ms) however, when put request made, time taken sunspot , solr displayed in various sub-lines, not @ end
started put "/collections/aa1/items/001" 127.0.0.1 @ 2016-03-07 15:10:59 +1100 ... solr request (456.0ms) ... ... solr request (127.8ms) ... ... completed 302 found in 1192.9ms (activerecord: 211.4ms) this problem because when logging happens in production, sub-lines aren't displayed.
how can list time sunspot , solr in final line, like
completed 302 found in 1192.9ms (activerecord: 211.4ms | solr: 123.4 ms) ?
Comments
Post a Comment