diff options
Diffstat (limited to 'api/debug/dashboard.php')
| -rw-r--r-- | api/debug/dashboard.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/api/debug/dashboard.php b/api/debug/dashboard.php index 08e6194..9b717c8 100644 --- a/api/debug/dashboard.php +++ b/api/debug/dashboard.php @@ -31,7 +31,8 @@ foreach ($errors as $e) { $hash = $e['hash'] ?? ''; if ($hash) { if (!isset($topErrors[$hash])) { - $topErrors[$hash] = ['hash' => $hash, 'message' => $e['message'] ?? '', 'count' => 0, 'type' => $t]; + $topErrors[$hash] = ['hash' => $hash, 'message' => $e['message'] ?? '', 'count' => 0, 'type' => $t, + 'frame' => $e['frame'] ?? null]; } $topErrors[$hash]['count'] += $e['count'] ?? 1; } @@ -297,7 +298,9 @@ $thread = array_slice($thread, -6); <?php $i = 1; foreach ($topErrors as $e): ?> <tr> <td><?= $i++ ?></td> - <td class="max-w-300"><a href="error.php?hash=<?= urlencode($e['hash'] ?? '') ?>" style="color:var(--text);text-decoration:none;" title="View details"><?= htmlspecialchars(substr($e['message'] ?? '', 0, 80)) ?></a></td> + <td class="max-w-300"><a href="error.php?hash=<?= urlencode($e['hash'] ?? '') ?>" style="color:var(--text);text-decoration:none;" title="View details"><?= htmlspecialchars(substr($e['message'] ?? '', 0, 80)) ?></a> + <?php if (!empty($e['frame'])): ?><div class="hide-sm" style="font-size:.72em;color:var(--muted)"><?= htmlspecialchars($e['frame']) ?></div><?php endif; ?> + </td> <td class="hide-sm"><span class="tag"><?= htmlspecialchars($e['type'] ?? '?') ?></span></td> <td><?= (int)($e['count'] ?? 0) ?></td> </tr> |