summaryrefslogtreecommitdiffstats
path: root/vendor/chalk-solve-0.87.0/src/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/chalk-solve-0.87.0/src/logging.rs')
-rw-r--r--vendor/chalk-solve-0.87.0/src/logging.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/chalk-solve-0.87.0/src/logging.rs b/vendor/chalk-solve-0.87.0/src/logging.rs
deleted file mode 100644
index a5be4d4d4..000000000
--- a/vendor/chalk-solve-0.87.0/src/logging.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-/// Run an action with a tracing log subscriber. The logging level is loaded
-/// from `CHALK_DEBUG`.
-#[cfg(feature = "tracing-full")]
-pub fn with_tracing_logs<T>(action: impl FnOnce() -> T) -> T {
- use tracing_subscriber::{layer::SubscriberExt, EnvFilter, Registry};
- use tracing_tree::HierarchicalLayer;
- let filter = EnvFilter::from_env("CHALK_DEBUG");
- let subscriber = Registry::default()
- .with(filter)
- .with(HierarchicalLayer::new(2).with_writer(std::io::stdout));
- tracing::subscriber::with_default(subscriber, action)
-}
-
-/// Run an action with a tracing log subscriber. The logging level is loaded
-/// from `CHALK_DEBUG`.
-#[cfg(not(feature = "tracing-full"))]
-pub fn with_tracing_logs<T>(action: impl FnOnce() -> T) -> T {
- action()
-}