var/cache/dev/twig/31/3136da789eff35ee14a7c2fe11c1ac2c622c51492059aad8333cbd9bdeb75ff6.php line 82

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Twig/Exception/logs.html.twig */
  14. class __TwigTemplate_7e652e0223f2d5378b2c308bddb017948de5f4c9bd97f130c1a8506d0b9686e5 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/logs.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Twig/Exception/logs.html.twig"));
  33.         // line 1
  34.         $context["channel_is_defined"] = twig_get_attribute($this->env$this->sourcetwig_first($this->env, (isset($context["logs"]) || array_key_exists("logs"$context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.'1$this->source); })())), "channel", [], "any"truetruefalse1);
  35.         // line 2
  36.         echo "<table class=\"logs\" data-filter-level=\"Emergency,Alert,Critical,Error,Warning,Notice,Info,Debug\" data-filters>
  37.     <thead>
  38.         <tr>
  39.             <th data-filter=\"level\">Level</th>
  40.             ";
  41.         // line 6
  42.         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.'6$this->source); })())) {
  43.             echo "<th data-filter=\"channel\">Channel</th>";
  44.         }
  45.         // line 7
  46.         echo "            <th class=\"full-width\">Message</th>
  47.         </tr>
  48.     </thead>
  49.     <tbody>
  50.     ";
  51.         // line 12
  52.         $context['_parent'] = $context;
  53.         $context['_seq'] = twig_ensure_traversable((isset($context["logs"]) || array_key_exists("logs"$context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.'12$this->source); })()));
  54.         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
  55.             // line 13
  56.             echo "        ";
  57.             if ((twig_get_attribute($this->env$this->source$context["log"], "priority", [], "any"falsefalsefalse13) >= 400)) {
  58.                 // line 14
  59.                 echo "            ";
  60.                 $context["status"] = "error";
  61.                 // line 15
  62.                 echo "        ";
  63.             } elseif ((twig_get_attribute($this->env$this->source$context["log"], "priority", [], "any"falsefalsefalse15) >= 300)) {
  64.                 // line 16
  65.                 echo "            ";
  66.                 $context["status"] = "warning";
  67.                 // line 17
  68.                 echo "        ";
  69.             } else {
  70.                 // line 18
  71.                 echo "            ";
  72.                 $context["severity"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsetruefalse18), "exception", [], "any"falsetruefalse18), "severity", [], "any"truetruefalse18)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsetruefalse18), "exception", [], "any"falsetruefalse18), "severity", [], "any"falsefalsefalse18), false)) : (false));
  73.                 // line 19
  74.                 echo "            ";
  75.                 $context["status"] = (((((isset($context["severity"]) || array_key_exists("severity"$context) ? $context["severity"] : (function () { throw new RuntimeError('Variable "severity" does not exist.'19$this->source); })()) === constant("E_DEPRECATED")) || ((isset($context["severity"]) || array_key_exists("severity"$context) ? $context["severity"] : (function () { throw new RuntimeError('Variable "severity" does not exist.'19$this->source); })()) === constant("E_USER_DEPRECATED")))) ? ("warning") : ("normal"));
  76.                 // line 20
  77.                 echo "        ";
  78.             }
  79.             // line 21
  80.             echo "        <tr class=\"status-";
  81.             echo twig_escape_filter($this->env, (isset($context["status"]) || array_key_exists("status"$context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.'21$this->source); })()), "html"nulltrue);
  82.             echo "\" data-filter-level=\"";
  83.             echo twig_escape_filter($this->envtwig_lower_filter($this->envtwig_get_attribute($this->env$this->source$context["log"], "priorityName", [], "any"falsefalsefalse21)), "html"nulltrue);
  84.             echo "\"";
  85.             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.'21$this->source); })())) {
  86.                 echo " data-filter-channel=\"";
  87.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["log"], "channel", [], "any"falsefalsefalse21), "html"nulltrue);
  88.                 echo "\"";
  89.             }
  90.             echo ">
  91.             <td class=\"text-small\" nowrap>
  92.                 <span class=\"colored text-bold\">";
  93.             // line 23
  94.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["log"], "priorityName", [], "any"falsefalsefalse23), "html"nulltrue);
  95.             echo "</span>
  96.                 <span class=\"text-muted newline\">";
  97.             // line 24
  98.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["log"], "timestamp", [], "any"falsefalsefalse24), "H:i:s"), "html"nulltrue);
  99.             echo "</span>
  100.             </td>
  101.             ";
  102.             // line 26
  103.             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.'26$this->source); })())) {
  104.                 // line 27
  105.                 echo "                <td class=\"text-small text-bold nowrap\">
  106.                     ";
  107.                 // line 28
  108.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["log"], "channel", [], "any"falsefalsefalse28), "html"nulltrue);
  109.                 echo "
  110.                 </td>
  111.             ";
  112.             }
  113.             // line 31
  114.             echo "            <td>
  115.                 ";
  116.             // line 32
  117.             echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatLogMessage(twig_get_attribute($this->env$this->source$context["log"], "message", [], "any"falsefalsefalse32), twig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsefalsefalse32));
  118.             echo "
  119.                 ";
  120.             // line 33
  121.             if ((((twig_get_attribute($this->env$this->source$context["log"], "context", [], "any"truetruefalse33) &&  !(null === twig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsefalsefalse33)))) ? (twig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsefalsefalse33)) : (false))) {
  122.                 // line 34
  123.                 echo "                    <pre class=\"text-muted prewrap m-t-5\">";
  124.                 echo twig_escape_filter($this->envjson_encode(twig_get_attribute($this->env$this->source$context["log"], "context", [], "any"falsefalsefalse34), ((twig_constant("JSON_PRETTY_PRINT") | twig_constant("JSON_UNESCAPED_UNICODE")) | twig_constant("JSON_UNESCAPED_SLASHES"))), "html"nulltrue);
  125.                 echo "</pre>
  126.                 ";
  127.             }
  128.             // line 36
  129.             echo "            </td>
  130.         </tr>
  131.     ";
  132.         }
  133.         $_parent $context['_parent'];
  134.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
  135.         $context array_intersect_key($context$_parent) + $_parent;
  136.         // line 39
  137.         echo "    </tbody>
  138. </table>
  139. ";
  140.         
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  142.         
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  144.     }
  145.     public function getTemplateName()
  146.     {
  147.         return "@Twig/Exception/logs.html.twig";
  148.     }
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     public function getDebugInfo()
  154.     {
  155.         return array (  147 => 39,  139 => 36,  133 => 34,  131 => 33,  127 => 32,  124 => 31,  118 => 28,  115 => 27,  113 => 26,  108 => 24,  104 => 23,  90 => 21,  87 => 20,  84 => 19,  81 => 18,  78 => 17,  75 => 16,  72 => 15,  69 => 14,  66 => 13,  62 => 12,  55 => 7,  51 => 6,  45 => 2,  43 => 1,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("{% set channel_is_defined = (logs|first).channel is defined %}
  160. <table class=\"logs\" data-filter-level=\"Emergency,Alert,Critical,Error,Warning,Notice,Info,Debug\" data-filters>
  161.     <thead>
  162.         <tr>
  163.             <th data-filter=\"level\">Level</th>
  164.             {% if channel_is_defined %}<th data-filter=\"channel\">Channel</th>{% endif %}
  165.             <th class=\"full-width\">Message</th>
  166.         </tr>
  167.     </thead>
  168.     <tbody>
  169.     {% for log in logs %}
  170.         {% if log.priority >= 400 %}
  171.             {% set status = 'error' %}
  172.         {% elseif log.priority >= 300 %}
  173.             {% set status = 'warning' %}
  174.         {% else %}
  175.             {% set severity = log.context.exception.severity|default(false) %}
  176.             {% set status = severity is constant('E_DEPRECATED') or severity is constant('E_USER_DEPRECATED') ? 'warning' : 'normal' %}
  177.         {% endif %}
  178.         <tr class=\"status-{{ status }}\" data-filter-level=\"{{ log.priorityName|lower }}\"{% if channel_is_defined %} data-filter-channel=\"{{ log.channel }}\"{% endif %}>
  179.             <td class=\"text-small\" nowrap>
  180.                 <span class=\"colored text-bold\">{{ log.priorityName }}</span>
  181.                 <span class=\"text-muted newline\">{{ log.timestamp|date('H:i:s') }}</span>
  182.             </td>
  183.             {% if channel_is_defined %}
  184.                 <td class=\"text-small text-bold nowrap\">
  185.                     {{ log.channel }}
  186.                 </td>
  187.             {% endif %}
  188.             <td>
  189.                 {{ log.message|format_log_message(log.context) }}
  190.                 {% if log.context ?? false %}
  191.                     <pre class=\"text-muted prewrap m-t-5\">{{ log.context|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_UNICODE') b-or constant('JSON_UNESCAPED_SLASHES')) }}</pre>
  192.                 {% endif %}
  193.             </td>
  194.         </tr>
  195.     {% endfor %}
  196.     </tbody>
  197. </table>
  198. ""@Twig/Exception/logs.html.twig""/home/xearts/stg1.work/pipit-gacha/releases/16/vendor/symfony/twig-bundle/Resources/views/Exception/logs.html.twig");
  199.     }
  200. }