replace all uses of log with tracing

This commit is contained in:
Pat Hickey
2020-06-02 12:24:28 -07:00
parent f89fc0ac57
commit 02c0c68ed2
16 changed files with 285 additions and 152 deletions

View File

@@ -15,6 +15,7 @@ mod borrow;
mod error;
mod guest_type;
mod region;
pub mod tracing;
pub use borrow::BorrowChecker;
use borrow::BorrowHandle;

View File

@@ -0,0 +1,11 @@
#[cfg(feature = "tracing")]
pub use tracing_crate::*;
#[cfg(not(feature = "tracing"))]
mod noop_tracing {
// TODO fill in rest of the noop interface
// idk how to do this because macro_rules! / #[macro_export] doesn't follow the usual module
// visibility rules.
}
#[cfg(not(feature = "tracing"))]
pub use noop_tracing::*;