Skip to content

Commit

Permalink
Lower some logging from debug -> trace
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 19, 2024
1 parent f7ec8f2 commit 76ec982
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn run_and_return(
) -> Result<()> {
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
let mut windows_next_repaint_times = HashMap::default();
Expand Down Expand Up @@ -231,7 +231,7 @@ fn run_and_exit(
mut winit_app: impl WinitApp + 'static,
) -> Result<()> {
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
let mut windows_next_repaint_times = HashMap::default();
Expand Down
4 changes: 2 additions & 2 deletions crates/egui-winit/src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl Clipboard {
fn init_arboard() -> Option<arboard::Clipboard> {
crate::profile_function!();

log::debug!("Initializing arboard clipboard…");
log::trace!("Initializing arboard clipboard…");
match arboard::Clipboard::new() {
Ok(clipboard) => Some(clipboard),
Err(err) => {
Expand All @@ -140,7 +140,7 @@ fn init_smithay_clipboard(
crate::profile_function!();

if let Some(RawDisplayHandle::Wayland(display)) = raw_display_handle {
log::debug!("Initializing smithay clipboard…");
log::trace!("Initializing smithay clipboard…");
#[allow(unsafe_code)]
Some(unsafe { smithay_clipboard::Clipboard::new(display.display.as_ptr()) })
} else {
Expand Down
4 changes: 2 additions & 2 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ impl ContextImpl {
.entry(pixels_per_point.into())
.or_insert_with(|| {
#[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;
crate::profile_scope!("Fonts::new");
Expand Down Expand Up @@ -1810,7 +1810,7 @@ impl ContextImpl {
true
} else {
#[cfg(feature = "log")]
log::debug!(
log::trace!(
"Freeing Fonts with pixels_per_point={} because it is no longer needed",
pixels_per_point.into_inner()
);
Expand Down

0 comments on commit 76ec982

Please sign in to comment.