Skip to content

Commit

Permalink
Downgrade some verbose error logs that actually aren't often critical
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Oct 27, 2024
1 parent 31a5b2c commit 199cf19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frame/capturer/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl Dispatch<ZwlrExportDmabufFrameV1, ()> for Capturer {
}

Event::Cancel { reason } => {
log::error!("Frame was cancelled, reason: {reason:?}");
log::debug!("Frame was cancelled, reason: {reason:?}");
frame.destroy();

thread::sleep(DELAY_FAILURE);
Expand Down Expand Up @@ -548,7 +548,7 @@ impl Dispatch<ZwlrScreencopyFrameV1, ()> for Capturer {
}

Event::Failed {} => {
log::error!("Frame copy failed");
log::debug!("Frame copy failed");
frame.destroy();

if let Some(buffer) = state.wl_buffer.take() {
Expand Down Expand Up @@ -667,7 +667,7 @@ impl Dispatch<ExtImageCopyCaptureSessionV1, ()> for Capturer {
}

Event::Stopped => {
log::error!("Image copy session stopped");
log::debug!("Image copy session stopped");
state.img_copy_capture_session.take().unwrap().destroy();
if let Some(buffer) = state.wl_buffer.take() {
buffer.destroy()
Expand Down Expand Up @@ -711,7 +711,7 @@ impl Dispatch<ExtImageCopyCaptureFrameV1, ()> for Capturer {
}

Event::Failed { reason } => {
log::error!("Frame copy failed, reason: {reason:?}");
log::debug!("Frame copy failed, reason: {reason:?}");
frame.destroy();

thread::sleep(DELAY_FAILURE);
Expand Down

0 comments on commit 199cf19

Please sign in to comment.