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