From 4b5a067fbdbea004077c2edaa83272cccd21da5f Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Fri, 3 May 2024 23:52:09 -0500 Subject: [PATCH] chore(tray): Log errors in addition to showing in dropdown --- internal/tray/systray.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/tray/systray.go b/internal/tray/systray.go index 8d654dc..3172b36 100644 --- a/internal/tray/systray.go +++ b/internal/tray/systray.go @@ -132,6 +132,7 @@ func (t *Tray) onReady() { } } case error: + slog.Error("Displaying error", "error", msg.Error()) t.items.Error.SetTitle(msg.Error()) t.items.Error.Show() case ReloadConfigMsg: @@ -147,6 +148,7 @@ func (t *Tray) onError(err error) { select { case t.bus <- err: default: + slog.Error("Unable to display error due to full bus", "error", err.Error()) } }