8000 merged branch jalliot/exception-profiler-logs (PR #4912) · nathanlon/symfony@dcf933b · GitHub
[go: up one dir, main page]

Skip to content

Commit dcf933b

Browse files
committed
merged branch jalliot/exception-profiler-logs (PR symfony#4912)
Commits ------- 1764574 [TwigBundle] Improved logs display on exception page Discussion ---------- [TwigBundle] Improved logs display on exception page Bug fix: no Feature addition: yes Backwards compatibility break: no Symfony2 tests pass: yes * Add the priority level in front of log entries * Better display of warnings
2 parents 1d3428b + 1764574 commit dcf933b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/public/css/exception.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ build: 56
8383
color: #AA3333;
8484
background: #f9ecec;
8585
}
86+
.sf-exceptionreset #logs .traces li.warning {
87+
font-style: normal;
88+
background: #ffcc00;
89+
}
8690
/* fix for Opera not liking empty <li> */
8791
.sf-exceptionreset .traces li:after {
8892
content: "\00A0";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ol class="traces logs">
22
{% for log in logs %}
3-
<li{% if log.priorityName < 5A24 span class="pl-k x">in ['EMERG', 'ERR', 'CRIT', 'ALERT', 'ERROR', 'CRITICAL'] %} class="error"{% endif %}>
4-
{{ log.message }}
3+
<li{% if log.priority >= 400 %} class="error"{% elseif log.priority >= 300 %} class="warning"{% endif %}>
4+
{{ log.priorityName }} - {{ log.message }}
55
</li>
66
{% endfor %}
77
</ol>

0 commit comments

Comments
 (0)
0