Skip to content

Commit 8295cbe

Browse files
committed
fix: avoid logging tainted keyboard output
1 parent 6e76bb2 commit 8295cbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/host/host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func GetHostKeyboardLayout() (string, error) {
9090
line = strings.TrimSpace(line)
9191
parts := strings.Split(line, " ")
9292
if len(parts) < 2 {
93-
slog.Error("Unable to retrieve host keyboard layout: malformed output", "output", line)
93+
slog.Error("Unable to retrieve host keyboard layout: malformed output")
9494
return "", fmt.Errorf("unable to retrieve host keyboard layout: malformed output")
9595
}
9696
return parts[len(parts)-1], nil

0 commit comments

Comments
 (0)