Remove debug prints that probably shouldn't have been merged
Also add a comment to the one place `eprintln!` is used to explain why it's appropriate.
This commit is contained in:
parent
2b4890c550
commit
e5fbf21fee
4 changed files with 3 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ impl WinitState {
|
|||
.get::<RefCell<OutputConfig>>()
|
||||
.unwrap()
|
||||
.borrow_mut();
|
||||
if dbg!(config.mode.0) != dbg!((size.w, size.h)) {
|
||||
if config.mode.0 != (size.w, size.h) {
|
||||
if !test_only {
|
||||
config.mode = ((size.w, size.h), None);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2692,7 +2692,7 @@ impl TilingLayout {
|
|||
data.add_window(bound_idx);
|
||||
bound_idx
|
||||
};
|
||||
tree.make_nth_sibling(&new_id, dbg!(idx)).unwrap();
|
||||
tree.make_nth_sibling(&new_id, idx).unwrap();
|
||||
*window.tiling_node_id.lock().unwrap() = Some(new_id);
|
||||
window
|
||||
}
|
||||
|
|
|
|||
|
|
@ -740,7 +740,6 @@ impl Workspaces {
|
|||
|
||||
// If this is the first output added, create workspaces for pinned workspaces from config
|
||||
for pinned in std::mem::take(&mut self.persisted_workspaces) {
|
||||
tracing::error!("pinned workspace: {:?}", pinned);
|
||||
let workspace = create_workspace_from_pinned(
|
||||
&pinned,
|
||||
workspace_state,
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ pub fn restore_nofile_limit() {
|
|||
};
|
||||
|
||||
if let Err(err) = setrlimit(Resource::Nofile, limits) {
|
||||
// Use `eprintln!` instead of `tracing` since this is used in `pre_exec`.
|
||||
eprintln!("Failed to restore nofile soft limit: {:?}", err);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue