diff --git a/src/xstate/mod.rs b/src/xstate/mod.rs index 37c39e5..89af3bb 100644 --- a/src/xstate/mod.rs +++ b/src/xstate/mod.rs @@ -590,7 +590,10 @@ impl XState { } } } - t => warn!("unrecognized message: {t:?}"), + t => warn!( + "unrecognized message: {:?}", + get_atom_name(&self.connection, t) + ), } } @@ -1415,6 +1418,9 @@ impl XConnection for RealConnection { fn get_atom_name(connection: &xcb::Connection, atom: x::Atom) -> String { match connection.wait_for_reply(connection.send_request(&x::GetAtomName { atom })) { Ok(reply) => reply.name().to_string(), - Err(err) => format!(" {atom:?}"), + Err(err) => { + warn!(" {atom:?}"); + format!("ATOM_{}", atom.resource_id()) + } } } diff --git a/tests/integration.rs b/tests/integration.rs index 1fe3eaa..d1e0005 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -126,7 +126,7 @@ impl Fixture { fn new_preset(pre_connect: impl FnOnce(&mut testwl::Server)) -> Self { static INIT: Once = Once::new(); INIT.call_once(|| { - pretty_env_logger::env_logger::builder() + pretty_env_logger::formatted_timed_builder() .is_test(true) .filter_level(log::LevelFilter::Debug) .parse_default_env()