Skip to content

Commit

Permalink
Better debug logging in request_discard
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Sep 10, 2024
1 parent fa7b2c0 commit e079c0b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,17 @@ impl Context {
self.output_mut(|o| o.requested_discard = true);

#[cfg(feature = "log")]
log::debug!("request_discard"); // TODO: trace level?
{
// TODO: trace level?
log::debug!(
"request_discard: {}",
if self.will_discard() {
"allowed"
} else {
"denied"
}
);
}
}

/// Will the visual output of this frame be discarded?
Expand Down

0 comments on commit e079c0b

Please sign in to comment.