Lower some logging from debug -> trace

This commit is contained in:
Emil Ernerfeldt 2024-01-19 13:44:04 +01:00
parent f7ec8f210d
commit 76ec982958
3 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ fn run_and_return(
) -> Result<()> { ) -> Result<()> {
use winit::{event_loop::ControlFlow, platform::run_on_demand::EventLoopExtRunOnDemand}; use winit::{event_loop::ControlFlow, platform::run_on_demand::EventLoopExtRunOnDemand};
log::debug!("Entering the winit event loop (run_on_demand)…"); log::trace!("Entering the winit event loop (run_on_demand)…");
// When to repaint what window // When to repaint what window
let mut windows_next_repaint_times = HashMap::default(); let mut windows_next_repaint_times = HashMap::default();
@ -231,7 +231,7 @@ fn run_and_exit(
mut winit_app: impl WinitApp + 'static, mut winit_app: impl WinitApp + 'static,
) -> Result<()> { ) -> Result<()> {
use winit::event_loop::ControlFlow; use winit::event_loop::ControlFlow;
log::debug!("Entering the winit event loop (run)…"); log::trace!("Entering the winit event loop (run)…");
// When to repaint what window // When to repaint what window
let mut windows_next_repaint_times = HashMap::default(); let mut windows_next_repaint_times = HashMap::default();

View File

@ -114,7 +114,7 @@ impl Clipboard {
fn init_arboard() -> Option<arboard::Clipboard> { fn init_arboard() -> Option<arboard::Clipboard> {
crate::profile_function!(); crate::profile_function!();
log::debug!("Initializing arboard clipboard…"); log::trace!("Initializing arboard clipboard…");
match arboard::Clipboard::new() { match arboard::Clipboard::new() {
Ok(clipboard) => Some(clipboard), Ok(clipboard) => Some(clipboard),
Err(err) => { Err(err) => {
@ -140,7 +140,7 @@ fn init_smithay_clipboard(
crate::profile_function!(); crate::profile_function!();
if let Some(RawDisplayHandle::Wayland(display)) = raw_display_handle { if let Some(RawDisplayHandle::Wayland(display)) = raw_display_handle {
log::debug!("Initializing smithay clipboard…"); log::trace!("Initializing smithay clipboard…");
#[allow(unsafe_code)] #[allow(unsafe_code)]
Some(unsafe { smithay_clipboard::Clipboard::new(display.display.as_ptr()) }) Some(unsafe { smithay_clipboard::Clipboard::new(display.display.as_ptr()) })
} else { } else {

View File

@ -390,7 +390,7 @@ impl ContextImpl {
.entry(pixels_per_point.into()) .entry(pixels_per_point.into())
.or_insert_with(|| { .or_insert_with(|| {
#[cfg(feature = "log")] #[cfg(feature = "log")]
log::debug!("Creating new Fonts for pixels_per_point={pixels_per_point}"); log::trace!("Creating new Fonts for pixels_per_point={pixels_per_point}");
is_new = true; is_new = true;
crate::profile_scope!("Fonts::new"); crate::profile_scope!("Fonts::new");
@ -1810,7 +1810,7 @@ impl ContextImpl {
true true
} else { } else {
#[cfg(feature = "log")] #[cfg(feature = "log")]
log::debug!( log::trace!(
"Freeing Fonts with pixels_per_point={} because it is no longer needed", "Freeing Fonts with pixels_per_point={} because it is no longer needed",
pixels_per_point.into_inner() pixels_per_point.into_inner()
); );