source = $this->getSourceContext(); $this->blocks = [ 'toolbar' => [$this, 'block_toolbar'], 'menu' => [$this, 'block_menu'], 'panel' => [$this, 'block_panel'], ]; } protected function doGetParent(array $context) { // line 1 return "@WebProfiler/Profiler/layout.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/logger.html.twig")); // line 3 $macros["helper"] = $this->macros["helper"] = $this; // line 1 $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/logger.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 5 public function block_toolbar($context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar")); // line 6 echo " "; if (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "counterrors", [], "any", false, false, false, 6) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countdeprecations", [], "any", false, false, false, 6)) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countscreams", [], "any", false, false, false, 6))) { // line 7 echo " "; ob_start(); // line 8 echo " "; $context["status_color"] = ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "counterrors", [], "any", false, false, false, 8)) ? ("red") : (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "countdeprecations", [], "any", false, false, false, 8)) ? ("yellow") : ("")))); // line 9 echo " "; $context["error_count"] = ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "counterrors", [], "any", false, false, false, 9) + twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countdeprecations", [], "any", false, false, false, 9)) + twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countscreams", [], "any", false, false, false, 9)); // line 10 echo " "; echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg"); echo " "; // line 11 echo twig_escape_filter($this->env, (isset($context["error_count"]) || array_key_exists("error_count", $context) ? $context["error_count"] : (function () { throw new RuntimeError('Variable "error_count" does not exist.', 11, $this->source); })()), "html", null, true); echo " "; $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 13 echo " "; // line 14 ob_start(); // line 15 echo "
Errors env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 17, $this->source); })()), "counterrors", [], "any", false, false, false, 17)) ? ("red") : ("")); echo "\">"; echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", true, true, false, 17)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", false, false, false, 17), 0)) : (0)), "html", null, true); echo "
Deprecated Calls env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 22, $this->source); })()), "countdeprecations", [], "any", false, false, false, 22)) ? ("yellow") : ("")); echo "\">"; echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 22)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", false, false, false, 22), 0)) : (0)), "html", null, true); echo "
Silenced Errors "; // line 27 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", true, true, false, 27)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", false, false, false, 27), 0)) : (0)), "html", null, true); echo "
"; $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 30 echo " "; // line 31 echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 31, $this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color", $context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.', 31, $this->source); })())]); echo " "; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 35 public function block_menu($context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu")); // line 36 echo " env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "counterrors", [], "any", false, false, false, 36)) ? ("error") : (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "countdeprecations", [], "any", false, false, false, 36)) ? ("warning") : ("")))); echo " "; echo ((twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "logs", [], "any", false, false, false, 36))) ? ("disabled") : ("")); echo "\"> "; // line 37 echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg"); echo " Logs "; // line 39 if ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 39, $this->source); })()), "counterrors", [], "any", false, false, false, 39) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 39, $this->source); })()), "countdeprecations", [], "any", false, false, false, 39))) { // line 40 echo " "; // line 41 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "counterrors", [], "any", false, false, false, 41)) ? (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "counterrors", [], "any", false, false, false, 41)) : (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "countdeprecations", [], "any", false, false, false, 41))), "html", null, true); echo " "; } // line 44 echo " "; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 47 public function block_panel($context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel")); // line 48 echo "

Log Messages

"; // line 50 if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 50, $this->source); })()), "logs", [], "any", false, false, false, 50))) { // line 51 echo "

No log messages available.

"; } else { // line 55 echo " "; // line 56 echo " "; list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"], $context["silenced_logs"]) = [[], [], [], []]; // line 57 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 57, $this->source); })()), "logs", [], "any", false, false, false, 57)); foreach ($context['_seq'] as $context["_key"] => $context["log"]) { // line 58 echo " "; if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 58), "level", [], "any", true, true, false, 58) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 58), "type", [], "any", true, true, false, 58)) && twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, false, false, 58), "type", [], "any", false, false, false, 58), [0 => twig_constant("E_DEPRECATED"), 1 => twig_constant("E_USER_DEPRECATED")]))) { // line 59 echo " "; $context["deprecation_logs"] = twig_array_merge((isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 59, $this->source); })()), [0 => $context["log"]]); // line 60 echo " "; } elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 60), "scream", [], "any", true, true, false, 60) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, false, false, 60), "scream", [], "any", false, false, false, 60) == true))) { // line 61 echo " "; $context["silenced_logs"] = twig_array_merge((isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 61, $this->source); })()), [0 => $context["log"]]); // line 62 echo " "; } elseif ((twig_get_attribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 62) == "DEBUG")) { // line 63 echo " "; $context["debug_logs"] = twig_array_merge((isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 63, $this->source); })()), [0 => $context["log"]]); // line 64 echo " "; } else { // line 65 echo " "; $context["info_and_error_logs"] = twig_array_merge((isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 65, $this->source); })()), [0 => $context["log"]]); // line 66 echo " "; } // line 67 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 68 echo "

Info. & Errors "; // line 71 echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 71, $this->source); })())), "html", null, true); echo "

"; // line 74 if (twig_test_empty((isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 74, $this->source); })()))) { // line 75 echo "

There are no log messages of this level.

"; } else { // line 79 echo " "; echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 79, $this->source); })()), "info", true], 79, $context, $this->getSourceContext()); echo " "; } // line 81 echo "
"; // line 87 echo "

Deprecations "; echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 87)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", false, false, false, 87), 0)) : (0)), "html", null, true); echo "

"; // line 90 if (twig_test_empty((isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 90, $this->source); })()))) { // line 91 echo "

There are no log messages about deprecated features.

"; } else { // line 95 echo " "; echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 95, $this->source); })()), "deprecation", false, true], 95, $context, $this->getSourceContext()); echo " "; } // line 97 echo "

Debug "; // line 101 echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 101, $this->source); })())), "html", null, true); echo "

"; // line 104 if (twig_test_empty((isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 104, $this->source); })()))) { // line 105 echo "

There are no log messages of this level.

"; } else { // line 109 echo " "; echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 109, $this->source); })()), "debug"], 109, $context, $this->getSourceContext()); echo " "; } // line 111 echo "

Silenced Errors "; // line 115 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", true, true, false, 115)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", false, false, false, 115), 0)) : (0)), "html", null, true); echo "

"; // line 118 if (twig_test_empty((isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 118, $this->source); })()))) { // line 119 echo "

There are no log messages of this level.

"; } else { // line 123 echo " "; echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 123, $this->source); })()), "silenced"], 123, $context, $this->getSourceContext()); echo " "; } // line 125 echo "
"; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } // line 132 public function macro_render_table($__logs__ = null, $__category__ = "", $__show_level__ = false, $__is_deprecation__ = false, ...$__varargs__) { $macros = $this->macros; $context = $this->env->mergeGlobals([ "logs" => $__logs__, "category" => $__category__, "show_level" => $__show_level__, "is_deprecation" => $__is_deprecation__, "varargs" => $__varargs__, ]); $blocks = []; ob_start(); try { $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table")); // line 133 echo " "; $macros["helper"] = $this; // line 134 echo " "; $context["channel_is_defined"] = twig_get_attribute($this->env, $this->source, twig_first($this->env, (isset($context["logs"]) || array_key_exists("logs", $context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.', 134, $this->source); })())), "channel", [], "any", true, true, false, 134); // line 135 echo " "; // line 140 if ((isset($context["channel_is_defined"]) || array_key_exists("channel_is_defined", $context) ? $context["channel_is_defined"] : (function () { throw new RuntimeError('Variable "channel_is_defined" does not exist.', 140, $this->source); })())) { echo ""; } // line 141 echo " "; // line 146 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["logs"]) || array_key_exists("logs", $context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.', 146, $this->source); })())); $context['loop'] = [ 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ]; if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["log"]) { // line 147 echo " "; $context["css_class"] = (((isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 147, $this->source); })())) ? ("") : (((twig_in_filter(twig_get_attribute($this->env, $this->source, // line 148 $context["log"], "priorityName", [], "any", false, false, false, 148), [0 => "CRITICAL", 1 => "ERROR", 2 => "ALERT", 3 => "EMERGENCY"])) ? ("status-error") : (((twig_in_filter(twig_get_attribute($this->env, $this->source, // line 149 $context["log"], "priorityName", [], "any", false, false, false, 149), [0 => "NOTICE", 1 => "WARNING"])) ? ("status-warning") : ("")))))); // line 151 echo " env, (isset($context["css_class"]) || array_key_exists("css_class", $context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.', 151, $this->source); })()), "html", null, true); echo "\"> "; // line 159 if ((isset($context["channel_is_defined"]) || array_key_exists("channel_is_defined", $context) ? $context["channel_is_defined"] : (function () { throw new RuntimeError('Variable "channel_is_defined" does not exist.', 159, $this->source); })())) { // line 160 echo " "; } // line 162 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 166 echo "
"; // line 139 echo (((isset($context["show_level"]) || array_key_exists("show_level", $context) ? $context["show_level"] : (function () { throw new RuntimeError('Variable "show_level" does not exist.', 139, $this->source); })())) ? ("Level") : ("Time")); echo "ChannelMessage
"; // line 153 if ((isset($context["show_level"]) || array_key_exists("show_level", $context) ? $context["show_level"] : (function () { throw new RuntimeError('Variable "show_level" does not exist.', 153, $this->source); })())) { // line 154 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 154), "html", null, true); echo " "; } // line 156 echo " "; echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "timestamp", [], "any", false, false, false, 156), "H:i:s"), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "channel", [], "any", false, false, false, 160), "html", null, true); echo ""; // line 163 echo twig_call_macro($macros["helper"], "macro_render_log_message", [(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 163, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 163), $context["log"], (isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 163, $this->source); })())], 163, $context, $this->getSourceContext()); echo "
"; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset()); } finally { ob_end_clean(); } } // line 170 public function macro_render_log_message($__category__ = null, $__log_index__ = null, $__log__ = null, $__is_deprecation__ = false, ...$__varargs__) { $macros = $this->macros; $context = $this->env->mergeGlobals([ "category" => $__category__, "log_index" => $__log_index__, "log" => $__log__, "is_deprecation" => $__is_deprecation__, "varargs" => $__varargs__, ]); $blocks = []; ob_start(); try { $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message")); // line 171 echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 171, $this->source); })()), "message", [], "any", false, false, false, 171), "html", null, true); echo " "; // line 173 if ((isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 173, $this->source); })())) { // line 174 echo " "; $context["stack"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 174), "stack", [], "any", true, true, false, 174)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 174), "stack", [], "any", false, false, false, 174), [])) : ([])); // line 175 echo " "; $context["stack_id"] = ((("sf-call-stack-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 175, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 175, $this->source); })())); // line 176 echo " "; // line 177 if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 177), "errorCount", [], "any", true, true, false, 177)) { // line 178 echo " ("; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 178, $this->source); })()), "context", [], "any", false, false, false, 178), "errorCount", [], "any", false, false, false, 178), "html", null, true); echo " times) "; } // line 180 echo " "; // line 181 if ((isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 181, $this->source); })())) { // line 182 echo " "; } // line 184 echo " "; // line 185 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 185, $this->source); })())); foreach ($context['_seq'] as $context["index"] => $context["call"]) { if (($context["index"] > 1)) { // line 186 echo " "; if (($context["index"] == 2)) { // line 187 echo " "; } // line 212 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 213 echo " "; } else { // line 214 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", true, true, false, 214) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 214, $this->source); })()), "context", [], "any", false, false, false, 214)))) { // line 215 echo " "; $context["context_id"] = ((("context-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 215, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 215, $this->source); })())); // line 216 echo " "; $context["context_dump"] = $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpValue(twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 216, $this->source); })()), "context", [], "any", false, false, false, 216)); // line 217 echo "
Context: "; // line 221 if ((twig_length_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 221, $this->source); })())) > 120)) { // line 222 echo " "; echo twig_escape_filter($this->env, twig_slice($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 222, $this->source); })()), 0, 120), "html", null, true); echo " ... env, (isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 224, $this->source); })()), "html", null, true); echo "\" data-toggle-alt-content=\"Hide full context\">Show full context
env, (isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 226, $this->source); })()), "html", null, true); echo "\" class=\"context\">
";
                        // line 227
                        echo twig_escape_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 227, $this->source); })()), "html", null, true);
                        echo "
"; } else { // line 230 echo " "; echo twig_escape_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 230, $this->source); })()), "html", null, true); echo " "; } // line 232 echo "
"; } // line 234 echo " "; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset()); } finally { ob_end_clean(); } } public function getTemplateName() { return "@WebProfiler/Collector/logger.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 671 => 234, 667 => 232, 661 => 230, 655 => 227, 651 => 226, 646 => 224, 640 => 222, 638 => 221, 632 => 217, 629 => 216, 626 => 215, 623 => 214, 620 => 213, 613 => 212, 609 => 210, 607 => 209, 603 => 207, 597 => 205, 595 => 204, 591 => 203, 587 => 201, 585 => 200, 582 => 199, 579 => 198, 576 => 197, 573 => 196, 570 => 195, 567 => 194, 564 => 193, 561 => 192, 558 => 191, 556 => 190, 553 => 189, 547 => 187, 544 => 186, 539 => 185, 536 => 184, 530 => 182, 528 => 181, 525 => 180, 519 => 178, 517 => 177, 514 => 176, 511 => 175, 508 => 174, 506 => 173, 500 => 171, 481 => 170, 467 => 166, 450 => 163, 447 => 162, 441 => 160, 439 => 159, 432 => 156, 426 => 154, 424 => 153, 418 => 151, 416 => 149, 415 => 148, 413 => 147, 396 => 146, 389 => 141, 385 => 140, 381 => 139, 375 => 135, 372 => 134, 369 => 133, 350 => 132, 338 => 125, 332 => 123, 326 => 119, 324 => 118, 318 => 115, 312 => 111, 306 => 109, 300 => 105, 298 => 104, 292 => 101, 286 => 97, 280 => 95, 274 => 91, 272 => 90, 265 => 87, 259 => 81, 253 => 79, 247 => 75, 245 => 74, 239 => 71, 234 => 68, 228 => 67, 225 => 66, 222 => 65, 219 => 64, 216 => 63, 213 => 62, 210 => 61, 207 => 60, 204 => 59, 201 => 58, 196 => 57, 193 => 56, 191 => 55, 185 => 51, 183 => 50, 179 => 48, 172 => 47, 164 => 44, 158 => 41, 155 => 40, 153 => 39, 148 => 37, 141 => 36, 134 => 35, 124 => 31, 121 => 30, 115 => 27, 105 => 22, 95 => 17, 91 => 15, 89 => 14, 86 => 13, 81 => 11, 76 => 10, 73 => 9, 70 => 8, 67 => 7, 64 => 6, 57 => 5, 49 => 1, 47 => 3, 37 => 1,); } public function getSourceContext() { return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block toolbar %} {% if collector.counterrors or collector.countdeprecations or collector.countscreams %} {% set icon %} {% set status_color = collector.counterrors ? 'red' : collector.countdeprecations ? 'yellow' : '' %} {% set error_count = collector.counterrors + collector.countdeprecations + collector.countscreams %} {{ include('@WebProfiler/Icon/logger.svg') }} {{ error_count }} {% endset %} {% set text %}
Errors {{ collector.counterrors|default(0) }}
Deprecated Calls {{ collector.countdeprecations|default(0) }}
Silenced Errors {{ collector.countscreams|default(0) }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@WebProfiler/Icon/logger.svg') }} Logs {% if collector.counterrors or collector.countdeprecations %} {{ collector.counterrors ?: collector.countdeprecations }} {% endif %} {% endblock %} {% block panel %}

Log Messages

{% if collector.logs is empty %}

No log messages available.

{% else %} {# sort collected logs in groups #} {% set deprecation_logs, debug_logs, info_and_error_logs, silenced_logs = [], [], [], [] %} {% for log in collector.logs %} {% if log.context.level is defined and log.context.type is defined and log.context.type in [constant('E_DEPRECATED'), constant('E_USER_DEPRECATED')] %} {% set deprecation_logs = deprecation_logs|merge([log]) %} {% elseif log.context.scream is defined and log.context.scream == true %} {% set silenced_logs = silenced_logs|merge([log]) %} {% elseif log.priorityName == 'DEBUG' %} {% set debug_logs = debug_logs|merge([log]) %} {% else %} {% set info_and_error_logs = info_and_error_logs|merge([log]) %} {% endif %} {% endfor %}

Info. & Errors {{ info_and_error_logs|length }}

{% if info_and_error_logs is empty %}

There are no log messages of this level.

{% else %} {{ helper.render_table(info_and_error_logs, 'info', true) }} {% endif %}
{# 'deprecation_logs|length' is not used because deprecations are now grouped and the group count doesn't match the message count #}

Deprecations {{ collector.countdeprecations|default(0) }}

{% if deprecation_logs is empty %}

There are no log messages about deprecated features.

{% else %} {{ helper.render_table(deprecation_logs, 'deprecation', false, true) }} {% endif %}

Debug {{ debug_logs|length }}

{% if debug_logs is empty %}

There are no log messages of this level.

{% else %} {{ helper.render_table(debug_logs, 'debug') }} {% endif %}

Silenced Errors {{ collector.countscreams|default(0) }}

{% if silenced_logs is empty %}

There are no log messages of this level.

{% else %} {{ helper.render_table(silenced_logs, 'silenced') }} {% endif %}
{% endif %} {% endblock %} {% macro render_table(logs, category = '', show_level = false, is_deprecation = false) %} {% import _self as helper %} {% set channel_is_defined = (logs|first).channel is defined %} {% if channel_is_defined %}{% endif %} {% for log in logs %} {% set css_class = is_deprecation ? '' : log.priorityName in ['CRITICAL', 'ERROR', 'ALERT', 'EMERGENCY'] ? 'status-error' : log.priorityName in ['NOTICE', 'WARNING'] ? 'status-warning' %} {% if channel_is_defined %} {% endif %} {% endfor %}
{{ show_level ? 'Level' : 'Time' }}ChannelMessage
{% if show_level %} {{ log.priorityName }} {% endif %} {{ log.timestamp|date('H:i:s') }} {{ log.channel }}{{ helper.render_log_message(category, loop.index, log, is_deprecation) }}
{% endmacro %} {% macro render_log_message(category, log_index, log, is_deprecation = false) %} {{ log.message }} {% if is_deprecation %} {% set stack = log.context.stack|default([]) %} {% set stack_id = 'sf-call-stack-' ~ category ~ '-' ~ log_index %} {% if log.context.errorCount is defined %} ({{ log.context.errorCount }} times) {% endif %} {% if stack %} {% endif %} {% for index, call in stack if index > 1 %} {% if index == 2 %} {% endif %} {% endfor %} {% else %} {% if log.context is defined and log.context is not empty %} {% set context_id = 'context-' ~ category ~ '-' ~ log_index %} {% set context_dump = profiler_dump(log.context) %}
Context: {% if context_dump|length > 120 %} {{ context_dump[:120] }} ... Show full context
{{ context_dump }}
{% else %} {{ context_dump }} {% endif %}
{% endif %} {% endif %} {% endmacro %} ", "@WebProfiler/Collector/logger.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig"); } }