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

Commitc59fbde

Browse files
javiereguiluzfabpot
authored andcommitted
Display the log context in the debug pages
1 parentb1b6860 commitc59fbde

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎src/Symfony/Bundle/TwigBundle/Resources/views/Exception/logs.html.twig‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
{{log.channel }}
2222
</td>
2323
{%endif %}
24-
<td>{{log.message|format_log_message(log.context) }}</td>
24+
<td>
25+
{{log.message|format_log_message(log.context) }}
26+
{%iflog.context ??false %}
27+
<preclass="text-muted prewrap m-t-5">{{log.context|json_encode(constant('JSON_PRETTY_PRINT') b-orconstant('JSON_UNESCAPED_UNICODE') b-orconstant('JSON_UNESCAPED_SLASHES')) }}</pre>
28+
{%endif %}
29+
</td>
2530
</tr>
2631
{%endfor %}
2732
</tbody>

‎src/Symfony/Bundle/TwigBundle/Resources/views/exception.css.twig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ table { background: #FFF; border: 1px solid #E0E0E0; box-shadow: 0px 0px 1px rgb
1717
table th, table td { border: solid #E0E0E0; border-width: 1px 0; padding: 8px 10px; }
1818
table th { background-color: #E0E0E0; font-weight: bold; text-align: left; }
1919

20+
.m-t-5 { margin-top: 5px; }
2021
.hidden-xs-down { display: none; }
2122
.block { display: block; }
2223
.hidden { display: none; }
24+
.prewrap { white-space: pre-wrap; }
2325
.nowrap { white-space: nowrap; }
2426
.newline { display: block; }
2527
.break-long-words { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp