Use log instead of println!

This commit is contained in:
Ian Douglas Scott 2024-03-06 14:05:32 -08:00
parent f9cf9568d2
commit 5e290acbee
4 changed files with 8 additions and 8 deletions

View file

@ -147,7 +147,7 @@ impl ScreencopyHandler for AppData {
};
if session.buffers.is_none() {
eprintln!("Error: No capture buffers?");
log::error!("No capture buffers?");
return;
}
@ -205,7 +205,7 @@ impl ScreencopyHandler for AppData {
_reason: WEnum<zcosmic_screencopy_session_v1::FailureReason>,
) {
// TODO
println!("Failed");
log::error!("Screencopy failed");
if let Some(capture) = Capture::for_session(session) {
capture.stop();
}