You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/logger exposes Debug/Info/Warn/Error/Fatal(msg string, args ...any), which forward to zap's sugared key/value API (sugar.Warnw, sugar.Errorw, ...). About 20 call sites instead pass a printf-style format string (%s, %v, %d) with trailing positional args, as if these were Printf-style helpers. Two bad outcomes result:
The format verbs are never expanded - the log carries a literal %s/%v.
The trailing args are misread as structured key/value pairs. An odd arg count leaves a dangling
key, so zap emits an extra error-level line Ignored key without a value.; an even count
produces nonsensical fields (e.g. a file path used as a field key).
This is the same defect class as the keybinding log flood (#722), which fixed the two worst offenders in internal/ui/keybinding/registry.go. This issue tracks the remaining sites so the whole class is closed.
Exercise any affected path (e.g. paste a clipboard image so actions.go logs, or hit a telegram
download error).
Inspect ~/.infer/logs/app-<date>.log: the message contains an unexpanded %s/%v, and odd-arg
sites are followed by an error-level Ignored key without a value. line.
Expected Behavior
Each call uses structured logging, e.g. logger.Warn("failed to save clipboard image", "path", tmpPath, "error", err) - verbs become fields, no
dangling keys, no spurious error line.
Actual Behavior
Unexpanded format verbs and malformed/duplicated structured fields; odd-arg calls add a spurious zap error line.
Proposed Fix
Convert each listed site to structured key/value form.
Optionally (follow-up): remove the footgun at the source - add explicit *f printf variants in internal/logger and/or a golangci-lint rule (e.g. loggercheck) that flags printf-style args passed
to the structured logger, so this cannot regress.
Activity
fix(keybindings): stop "unknown keybinding action" log flood (#724)
chore(release): 0.128.0 [skip ci]
inference-gateway-releaser commentedon Jul 3, 2026
🎉 This issue has been resolved in version 0.128.0 🎉
The release is available on:
Your semantic-release bot 📦🚀