Skip to content

Commit 0f35187

Browse files
author
bors-servo
committed
Auto merge of #240 - pcwalton:debug-logging, r=glennw
Change debug printlns to logs. Addresses servo/servo#10012. r? @glennw
2 parents ce55aca + 5dae750 commit 0f35187

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ fnv="1.0"
4343
scoped_threadpool = "0.1.6"
4444
app_units = {version = "0.2.1", features = ["plugins"]}
4545
lazy_static = "0.1"
46+
log = "0.3"
4647

4748
[target.x86_64-apple-darwin.dependencies]
4849
core-graphics = ">=0.2, <0.4"

src/aabbtree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl AABBTree {
222222
// include transformed elements, however this isn't currently
223223
// handled by the layout code! If it's not that, this is an
224224
// unexpected condition and should be investigated!
225-
println!("WARNING: insert rect {:?} outside bounds, dropped.", rect);
225+
debug!("WARNING: insert rect {:?} outside bounds, dropped.", rect);
226226
} else {
227227
for node_index in self.work_node_indices.drain(..) {
228228
let NodeIndex(node_index) = node_index;

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#[macro_use]
88
extern crate lazy_static;
9+
#[macro_use]
10+
extern crate log;
911

1012
mod aabbtree;
1113
mod batch;

0 commit comments

Comments
 (0)