Skip to content

Commit

Permalink
vm(qemu): ignore key presses in debug log
Browse files Browse the repository at this point in the history
Fixes #5651
  • Loading branch information
osy committed Sep 4, 2023
1 parent b61b5f9 commit 8e82029
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Services/UTMQemuVirtualMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ extension UTMQemuVirtualMachine {
let spiceSocketUrl = await config.spiceSocketURL
let ioService = UTMSpiceIO(socketUrl: spiceSocketUrl, options: options)
ioService.logHandler = { [weak system] (line: String) -> Void in
guard !line.contains("spice_make_scancode") else {
return // do not log key presses for privacy reasons
}
system?.logging?.writeLine(line)
}
try ioService.start()
Expand Down

0 comments on commit 8e82029

Please sign in to comment.