Permalink
Browse files

Prettify logging output

  • Loading branch information...
1 parent b6402dc commit 2348c93f9e3e29e86da0063fc2300484d36f2d04 @beberlei beberlei committed Jun 23, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Resources/views/Collector/couchdb.html.twig
@@ -41,7 +41,8 @@
<strong>Duration</strong>: {{ '%0.2f'|format(request.duration * 1000) }} ms<br />
<strong>Request-Size</strong>: {{ request.request_size }}
</small>
- <div><code>{{ request.response|json_encode }}</code></div>
+ <div style="border:1px solid #000; padding: 4px; margin: 4px; overflow: auto;"><small>Request-Body</small><br /> {% if request.request is not empty %}<pre><code>{{ request.request|json_encode }}</code></pre>{% else %}Empty{% endif %}</div>
+ <div style="border:1px solid #000; padding: 4px; margin: 4px; overflow: auto;"><small>Response-Body</small><br /><pre><code>{{ request.response|json_encode }}</code></pre></div>
</li>
{% endfor %}
</ul>

0 comments on commit 2348c93

Please sign in to comment.