screencopy: Use info! logging for FailureReason::Stopped

This is an expected case, not an error.
This commit is contained in:
Ian Douglas Scott 2025-10-13 13:25:45 -07:00 committed by Ian Douglas Scott
parent c5f777dc15
commit cf2bb0205c

View file

@ -243,7 +243,11 @@ impl ScreencopyHandler for AppData {
session.attach_buffer_and_commit(&capture, conn, &self.qh); session.attach_buffer_and_commit(&capture, conn, &self.qh);
} else { } else {
// TODO // TODO
log::error!("Screencopy failed: {:?}", reason); if reason == WEnum::Value(FailureReason::Stopped) {
log::info!("Screencopy frame capture stopped");
} else {
log::error!("Screencopy failed: {:?}", reason);
}
capture.stop(); capture.stop();
} }
} }