mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 01:48:12 +08:00
#[macro_use] the log crate (#775)
This commit is contained in:
committed by
Keavon Chambers
parent
655831eedf
commit
788552e10c
@@ -335,7 +335,7 @@ fn path_intersections(a: &SubCurve, b: &SubCurve, intersections: &mut Vec<Inters
|
||||
// Return the best estimate of intersection regardless of quality
|
||||
// Also provides a base case and prevents infinite recursion
|
||||
if a.available_precision() <= F64PRECISE || b.available_precision() <= F64PRECISE {
|
||||
log::trace!("Precision reached");
|
||||
trace!("Precision reached");
|
||||
intersections.push(cross);
|
||||
return;
|
||||
}
|
||||
@@ -343,7 +343,7 @@ fn path_intersections(a: &SubCurve, b: &SubCurve, intersections: &mut Vec<Inters
|
||||
// Alternate base case
|
||||
// Note: may occur for the less forgiving side of a `PathSeg` endpoint intersect
|
||||
if a.available_precision() <= F64PRECISE || b.available_precision() <= F64PRECISE {
|
||||
log::trace!("Precision reached without finding intersect");
|
||||
trace!("Precision reached without finding intersect");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
// `macro_use` puts the log macros (`error!`, `warn!`, `debug!`, `info!` and `trace!`) in scope for the crate
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
pub mod boolean_ops;
|
||||
/// Contains the [Color](color::Color) type.
|
||||
pub mod color;
|
||||
|
||||
Reference in New Issue
Block a user