tracing: Use don't log on hot paths without trace-level

This commit is contained in:
Victoria Brekenfeld 2023-03-03 19:34:41 +01:00
parent 9b416b5779
commit 3f462e3eb7
7 changed files with 20 additions and 20 deletions

View file

@ -27,7 +27,7 @@ use smithay::{
X11Surface, X11Wm, XWayland, XWaylandEvent, XwmHandler,
},
};
use tracing::{error, info, warn};
use tracing::{error, trace, warn};
pub struct XWaylandState {
pub xwm: Option<X11Wm>,
@ -489,7 +489,7 @@ impl XwmHandler for Data {
}
fn new_selection(&mut self, xwm: XwmId, selection: SelectionType, mime_types: Vec<String>) {
info!(?selection, ?mime_types, "Got Selection from Xwayland",);
trace!(?selection, ?mime_types, "Got Selection from Xwayland",);
if self.state.common.is_x_focused(xwm) {
let seat = self.state.common.last_active_seat();