Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7943f70

Browse files
committed
feature#27170 Show the deprecations tab by default in the logger panel (javiereguiluz)
This PR was merged into the 4.1-dev branch.Discussion----------Show the deprecations tab by default in the logger panel| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR | -Similar to#26398, I propose to display the deprecation tab by default when there are no error logs but there are some deprecations.Commits-------d27b158 Show the deprecations tab by default in the logger panel
2 parentsbad5680 +d27b158 commit7943f70

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
{%else %}
5454
{# sort collected logs in groups#}
5555
{%setdeprecation_logs,debug_logs,info_and_error_logs,silenced_logs= [], [], [], [] %}
56+
{%sethas_error_logs=false %}
5657
{%forlogincollector.logs %}
5758
{%iflog.screamisdefinedandnotlog.scream %}
5859
{%setdeprecation_logs=deprecation_logs|merge([log]) %}
@@ -62,11 +63,14 @@
6263
{%setdebug_logs=debug_logs|merge([log]) %}
6364
{%else %}
6465
{%setinfo_and_error_logs=info_and_error_logs|merge([log]) %}
66+
{%iflog.priorityName!='INFO' %}
67+
{%sethas_error_logs=true %}
68+
{%endif %}
6569
{%endif %}
6670
{%endfor %}
6771

6872
<divclass="sf-tabs">
69-
<divclass="tab">
73+
<divclass="tab {{has_error_logs?'active' }}">
7074
<h3class="tab-title">Info.&amp; Errors <spanclass="badge status-{{collector.counterrors?'error':collector.countwarnings?'warning' }}">{{collector.counterrors ?:info_and_error_logs|length }}</span></h3>
7175
<pclass="text-muted">Informational and error log messages generated during the execution of the application.</p>
7276

@@ -81,7 +85,7 @@
8185
</div>
8286
</div>
8387

84-
<divclass="tab">
88+
<divclass="tab {{nothas_error_logsandcollector.countdeprecations>0?'active' }}">
8589
{# 'deprecation_logs|length' is not used because deprecations are
8690
now grouped and the group count doesn't match the message count#}
8791
<h3class="tab-title">Deprecations <spanclass="badge status-{{collector.countdeprecations?'warning' }}">{{collector.countdeprecations|default(0) }}</span></h3>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp