From 2af4ec5dcbdcf019359c93b20183b3d56f0426ec Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Fri, 16 Feb 2018 12:43:05 +0200 Subject: [PATCH 1/2] [symfony] Print command name --- .../Resources/views/Profiler/panel.html.twig | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig index c11c21929..226994cd9 100644 --- a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig +++ b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig @@ -33,7 +33,8 @@ # - Topic + Type + Destination Message Priority @@ -42,19 +43,22 @@ {% for sentMessage in collector.sentMessages %} {{ loop.index }} - {{ sentMessage.topic }} + {% if sentMessage.command|default(null) %}Event{% else %}Command{% endif %} + {% if sentMessage.command|default(null) %}{{ sentMessage.command }}{% else %}{{ sentMessage.topic }}{% endif %} - - - {{ collector.ensureString(sentMessage.body)[0:40] }}{% if collector.ensureString(sentMessage.body)[0:40] != collector.ensureString(sentMessage.body) %}...{% endif %} - - Show trace - -
- {{ profiler_dump(sentMessage.body) }} -
+ + + {{ collector.prettyPrintPriority(sentMessage.priority) }} + {% endfor %} From 4bc7e3660fc9c34fd1f95f3cc71c0fc4a15f2ae7 Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Fri, 16 Feb 2018 12:53:56 +0200 Subject: [PATCH 2/2] [symfony][profiler] Rename "show trace" to "show body", show it if body lenth great then 40 chars --- .../Resources/views/Profiler/panel.html.twig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig index 226994cd9..4d8056826 100644 --- a/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig +++ b/pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig @@ -33,8 +33,8 @@ # - Type - Destination + Topic + Command Message Priority @@ -43,18 +43,21 @@ {% for sentMessage in collector.sentMessages %} {{ loop.index }} - {% if sentMessage.command|default(null) %}Event{% else %}Command{% endif %} - {% if sentMessage.command|default(null) %}{{ sentMessage.command }}{% else %}{{ sentMessage.topic }}{% endif %} + {{ sentMessage.topic|default(null) }} + {{ sentMessage.command|default(null) }}