|
124 | 124 | </div>
|
125 | 125 | </div>
|
126 | 126 |
|
| 127 | + {% set compilerLogTotal = 0 %} |
| 128 | + {% for logs in collector.compilerLogs %} |
| 129 | + {% set compilerLogTotal = compilerLogTotal + logs|length %} |
| 130 | + {% endfor %} |
| 131 | + <div class="tab"> |
| 132 | + <h3 class="tab-title">Container Compilation<span class="badge">{{ compilerLogTotal }}</span></h3> |
| 133 | + |
| 134 | + <div class="tab-content"> |
| 135 | + {% if collector.compilerLogs is empty %} |
| 136 | + <div class="empty"> |
| 137 | + <p>There are no compiler log messages.</p> |
| 138 | + </div> |
| 139 | + {% else %} |
| 140 | + <table class="logs"> |
| 141 | + <thead> |
| 142 | + <tr> |
| 143 | + <th class="full-width">Class</th> |
| 144 | + <th>Messages</th> |
| 145 | + </tr> |
| 146 | + </thead> |
| 147 | + |
| 148 | + <tbody> |
| 149 | + {% for class, logs in collector.compilerLogs %} |
| 150 | + <tr class=""> |
| 151 | + <td class="font-normal"> |
| 152 | + {% set context_id = 'context-compiler-' ~ loop.index %} |
| 153 | + |
| 154 | + <a class="btn btn-link sf-toggle" data-toggle-selector="#{{ context_id }}" data-toggle-alt-content="{{ class }}">{{ class }}</a> |
| 155 | + |
| 156 | + <div id="{{ context_id }}" class="context sf-toggle-content sf-toggle-hidden"> |
| 157 | + <ul> |
| 158 | + {% for log in logs %} |
| 159 | + <li>{{ profiler_dump_log(log.message) }}</li> |
| 160 | + {% endfor %} |
| 161 | + </ul> |
| 162 | + </div> |
| 163 | + </td> |
| 164 | + <td class="font-normal text-right">{{ logs|length }}</td> |
| 165 | + </tr> |
| 166 | + {% endfor %} |
| 167 | + </tbody> |
| 168 | + </table> |
| 169 | + {% endif %} |
| 170 | + </div> |
| 171 | + </div> |
| 172 | + |
127 | 173 | </div>
|
128 | 174 | {% endif %}
|
129 | 175 | {% endblock %}
|
|
165 | 211 |
|
166 | 212 | {% endif %}
|
167 | 213 |
|
168 |
| - <td class="font-normal">{{ helper.render_log_message(category, loop.index, log, is_deprecation) }}</td> |
| 214 | + <td class="font-normal">{{ helper.render_log_message(category, loop.index, log) }}</td> |
169 | 215 | </tr>
|
170 | 216 | {% endfor %}
|
171 | 217 | </tbody>
|
172 | 218 | </table>
|
173 | 219 | {% endmacro %}
|
174 | 220 |
|
175 |
| -{% macro render_log_message(category, log_index, log, is_deprecation = false) %} |
176 |
| - {% if is_deprecation %} |
177 |
| - {{ log.message }} |
| 221 | +{% macro render_log_message(category, log_index, log) %} |
| 222 | + {% if log.context.exception.trace is defined %} |
| 223 | + {{ profiler_dump_log(log.message, log.context) }} |
178 | 224 |
|
179 | 225 | {% set context_id = 'context-' ~ category ~ '-' ~ log_index %}
|
180 | 226 |
|
181 | 227 | <span class="metadata">
|
182 | 228 | <a class="btn btn-link text-small sf-toggle" data-toggle-selector="#{{ context_id }}" data-toggle-alt-content="Hide trace">Show trace</a>
|
183 | 229 |
|
184 | 230 | <div id="{{ context_id }}" class="context sf-toggle-content sf-toggle-hidden">
|
185 |
| - {{ profiler_dump(log.context.exception['\0Exception\0trace'], maxDepth=2) }} |
| 231 | + {{ profiler_dump(log.context.exception.trace, maxDepth=1) }} |
186 | 232 | </div>
|
187 | 233 | </span>
|
188 | 234 | {% elseif log.context is defined and log.context is not empty %}
|
|
198 | 244 | </div>
|
199 | 245 | </span>
|
200 | 246 | {% else %}
|
201 |
| - {{ log.message }} |
| 247 | + {{ profiler_dump_log(log.message) }} |
202 | 248 | {% endif %}
|
203 | 249 | {% endmacro %}
|
0 commit comments