renderWatchdogTimeout renders a watchdog timeout message.
(entry LogEntry)
| 621 | |
| 622 | // renderWatchdogTimeout renders a watchdog timeout message. |
| 623 | func (l *LogViewer) renderWatchdogTimeout(entry LogEntry) []string { |
| 624 | style := lipgloss.NewStyle(). |
| 625 | Foreground(WarningColor). |
| 626 | Bold(true) |
| 627 | |
| 628 | text := entry.Text |
| 629 | if text == "" { |
| 630 | text = "Watchdog timeout: process killed" |
| 631 | } |
| 632 | |
| 633 | return []string{style.Render("⏱ " + text)} |
| 634 | } |