From 62c9f986ba76eb79e0bbd8bf05fe74dc8b3f7daf Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 28 Mar 2024 15:15:32 -0700 Subject: [PATCH] screencopy: Include error in error log --- src/wayland/screencopy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/screencopy.rs b/src/wayland/screencopy.rs index 9f21d88..d32fdba 100644 --- a/src/wayland/screencopy.rs +++ b/src/wayland/screencopy.rs @@ -234,10 +234,10 @@ impl ScreencopyHandler for AppData { _conn: &Connection, _qh: &QueueHandle, screencopy_frame: &zcosmic_screencopy_frame_v2::ZcosmicScreencopyFrameV2, - _reason: WEnum, + reason: WEnum, ) { // TODO - log::error!("Screencopy failed"); + log::error!("Screencopy failed: {:?}", reason); let session = &screencopy_frame.data::().unwrap().session; if let Some(capture) = Capture::for_session(session) { capture.stop();