File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Symfony/Bundle/TwigBundle/Resources/views/Exception Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
<tbody >
13
13
{% for log in logs %}
14
- <tr class =" status-{{ log .priority >= 400 ? ' error' : log .priority >= 300 ? ' warning' : ' normal' }}" >
14
+ {% if log .priority >= 400 %}
15
+ {% set status = ' error' %}
16
+ {% elseif log .priority >= 300 %}
17
+ {% set status = ' warning' %}
18
+ {% else %}
19
+ {% set severity = log .context .exception .severity | default (false ) %}
20
+ {% set status = severity is constant (' E_DEPRECATED' ) or severity is constant (' E_USER_DEPRECATED' ) ? ' warning' : ' normal' %}
21
+ {% endif %}
22
+ <tr class =" status-{{ status }}" >
15
23
<td class =" text-small" nowrap >
16
24
<span class =" colored text-bold" >{{ log .priorityName }}</span >
17
25
<span class =" text-muted newline" >{{ log .timestamp | date (' H:i:s' ) }}</span >
You can’t perform that action at this time.
0 commit comments