Use log instead of println!
This commit is contained in:
parent
f9cf9568d2
commit
5e290acbee
4 changed files with 8 additions and 8 deletions
|
|
@ -450,7 +450,7 @@ impl Application for App {
|
|||
self.update_capture_filter();
|
||||
}
|
||||
wayland::Event::NewToplevel(handle, info) => {
|
||||
println!("New toplevel: {info:?}");
|
||||
log::debug!("New toplevel: {info:?}");
|
||||
self.toplevels.push(Toplevel {
|
||||
icon: desktop_info::icon_for_app_id(info.app_id.clone()),
|
||||
handle,
|
||||
|
|
@ -709,7 +709,7 @@ impl Application for App {
|
|||
}
|
||||
}
|
||||
}
|
||||
println!("NO VIEW");
|
||||
log::info!("NO VIEW");
|
||||
text("workspaces").into()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ impl AppData {
|
|||
return buffer;
|
||||
}
|
||||
Ok(None) => {}
|
||||
Err(err) => eprintln!("Failed to create gbm buffer: {}", err),
|
||||
Err(err) => log::error!("Failed to create gbm buffer: {}", err),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@ impl DmabufHandler for AppData {
|
|||
self.gbm = Some(gbm);
|
||||
}
|
||||
Ok(None) => {
|
||||
eprintln!("Gbm main device '{}' not found", feedback.main_device());
|
||||
log::error!("Gbm main device '{}' not found", feedback.main_device());
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("Failed to open gbm main device: {}", err);
|
||||
log::error!("Failed to open gbm main device: {}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -72,7 +72,7 @@ fn find_gbm_device(dev: u64) -> io::Result<Option<(PathBuf, gbm::Device<fs::File
|
|||
let i = i?;
|
||||
if i.metadata()?.rdev() == dev {
|
||||
let file = fs::File::options().read(true).write(true).open(i.path())?;
|
||||
eprintln!("Opened gbm main device '{}'", i.path().display());
|
||||
log::info!("Opened gbm main device '{}'", i.path().display());
|
||||
return Ok(Some((i.path(), gbm::Device::new(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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue