lib/rack/insight/panels/active_resource_panel.rb in rack-insight-0.5.4 vs lib/rack/insight/panels/active_resource_panel.rb in rack-insight-0.5.5
- old
+ new
@@ -39,10 +39,10 @@
"ARes: #{queries.size} Queries (%.2fms)" % total_time(queries)
end
def content_for_request(number)
queries = retrieve(number)
- logger.debug{ "ARes: #{queries.inspect}" }
+ logger.debug{ "ARes: #{queries.inspect}" } if verbose(:debug)
render_template "panels/active_resource", :queries => queries
end
end
end