From 278b90e5bd8a97310b0382112e7f7218c4f0b5fe Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Wed, 29 Apr 2026 11:53:35 +0300 Subject: [PATCH] Fix log.Printf format verbs to match actual types (vet errors) --- internal/ui/model.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/ui/model.go b/internal/ui/model.go index d2e579c..8d26a47 100644 --- a/internal/ui/model.go +++ b/internal/ui/model.go @@ -330,7 +330,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil case previewMsg: - log.Printf("[EVENT] previewMsg: path=%s kind=%d", msg.entryPath, msg.preview.Kind) + log.Printf("[EVENT] previewMsg: path=%s kind=%s", msg.entryPath, msg.preview.Kind) if selected, ok := m.activePane().Selected(); ok && selected.Path == msg.entryPath { m.applyPreview(msg.preview) } @@ -1269,7 +1269,7 @@ func (m Model) handleModalKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) { case modalMkdir, modalRename: switch { case msg.String() == "esc": - log.Printf("[MODAL] %s — cancelled (Esc)", m.modal.kind) + log.Printf("[MODAL] %d — cancelled (Esc)", m.modal.kind) m.modal = modalState{} m.status = "Cancelled" return m, nil @@ -5161,7 +5161,7 @@ func (m *Model) handleSSHConnectHost() (tea.Model, tea.Cmd) { } } - log.Printf("[ACTION] SSHConnectHost: host=%s user=%s hostname=%s port=%d", + log.Printf("[ACTION] SSHConnectHost: host=%s user=%s hostname=%s port=%s", host.Name, host.User, host.HostName, host.Port) m.status = fmt.Sprintf("Connecting to %s@%s...", host.User, host.HostName)