Fixes the stack traces of the deprecation logs
This commit is contained in:
parent
074a4bf89e
commit
09f489530b
@ -169,6 +169,7 @@
|
|||||||
{% if index == 2 %}
|
{% if index == 2 %}
|
||||||
<ul class="sf-call-stack" id="{{ id }}" class="hidden">
|
<ul class="sf-call-stack" id="{{ id }}" class="hidden">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if call.class is defined %}
|
{% if call.class is defined %}
|
||||||
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
|
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
|
||||||
{% elseif call.function is defined %}
|
{% elseif call.function is defined %}
|
||||||
@ -179,7 +180,14 @@
|
|||||||
{% set from = '-' %}
|
{% set from = '-' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li><span class="text-small">Called from</span> {{ call.file is defined and call.line is defined ? call.file|format_file(call.line, from) : from|raw }}</li>
|
{% set file_name = (call.file is defined and call.line is defined) ? call.file|replace({'\\': '/'})|split('/')|last %}
|
||||||
|
|
||||||
|
<li>
|
||||||
|
{{ from|raw }}
|
||||||
|
{% if file_name %}
|
||||||
|
<span class="text-small">(called from {{ call.file|format_file(call.line, file_name)|raw }})</span>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
|
||||||
{% if index == stack|length - 1 %}
|
{% if index == stack|length - 1 %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user