tracing: Use don't log on hot paths without trace-level
This commit is contained in:
parent
9b416b5779
commit
3f462e3eb7
7 changed files with 20 additions and 20 deletions
|
|
@ -24,7 +24,7 @@ use smithay::{
|
|||
},
|
||||
};
|
||||
use std::sync::Mutex;
|
||||
use tracing::{debug, warn};
|
||||
use tracing::{trace, warn};
|
||||
|
||||
impl Shell {
|
||||
pub fn unconstrain_popup(&self, surface: &PopupSurface, positioner: &PositionerState) {
|
||||
|
|
@ -104,7 +104,7 @@ fn unconstrain_xdg_popup_tile(surface: &PopupSurface, rect: Rectangle<i32, Logic
|
|||
let offset = check_constrained(geometry, rect);
|
||||
|
||||
if offset.x != 0 || offset.y != 0 {
|
||||
debug!(?surface, "Unconstraining popup to tile.");
|
||||
trace!(?surface, "Unconstraining popup to tile.");
|
||||
if !unconstrain_flip(&surface, rect) {
|
||||
return unconstrain_slide(&surface, rect);
|
||||
// don't try to resize for fitting to a tile
|
||||
|
|
@ -124,7 +124,7 @@ fn unconstrain_xdg_popup(
|
|||
let offset = check_constrained(geometry, relative);
|
||||
|
||||
if offset.x != 0 || offset.y != 0 {
|
||||
debug!(?surface, "Unconstraining popup.");
|
||||
trace!(?surface, "Unconstraining popup.");
|
||||
if !unconstrain_flip(&surface, relative) {
|
||||
if !unconstrain_slide(&surface, relative) {
|
||||
unconstrain_resize(&surface, relative);
|
||||
|
|
@ -144,7 +144,7 @@ fn unconstrain_layer_popup(surface: &PopupSurface, output: &Output, layer_surfac
|
|||
let offset = check_constrained(geometry, relative);
|
||||
|
||||
if offset.x != 0 || offset.y != 0 {
|
||||
debug!(?surface, "Unconstraining popup.");
|
||||
trace!(?surface, "Unconstraining popup.");
|
||||
if !unconstrain_flip(&surface, relative) {
|
||||
if !unconstrain_slide(&surface, relative) {
|
||||
unconstrain_resize(&surface, relative);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue