[TwigBundle] Improved logs display on exception page
This commit is contained in:
parent
c99b10804b
commit
1764574198
|
@ -83,6 +83,10 @@ build: 56
|
|||
color: #AA3333;
|
||||
background: #f9ecec;
|
||||
}
|
||||
.sf-exceptionreset #logs .traces li.warning {
|
||||
font-style: normal;
|
||||
background: #ffcc00;
|
||||
}
|
||||
/* fix for Opera not liking empty <li> */
|
||||
.sf-exceptionreset .traces li:after {
|
||||
content: "\00A0";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<ol class="traces logs">
|
||||
{% for log in logs %}
|
||||
<li{% if log.priorityName in ['EMERG', 'ERR', 'CRIT', 'ALERT', 'ERROR', 'CRITICAL'] %} class="error"{% endif %}>
|
||||
{{ log.message }}
|
||||
<li{% if log.priority >= 400 %} class="error"{% elseif log.priority >= 300 %} class="warning"{% endif %}>
|
||||
{{ log.priorityName }} - {{ log.message }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
|
Reference in New Issue