mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-01-23 15:08:04 +00:00
This commit is contained in:
parent
db3335bbf7
commit
c3e764ddda
4 changed files with 9 additions and 9 deletions
|
@ -71,7 +71,7 @@ impl Project {
|
||||||
let version_id = version_id.clone();
|
let version_id = version_id.clone();
|
||||||
let node = node.clone();
|
let node = node.clone();
|
||||||
|
|
||||||
let span = tracing::debug_span!(
|
let span = tracing::info_span!(
|
||||||
"download",
|
"download",
|
||||||
name = name.to_string(),
|
name = name.to_string(),
|
||||||
version_id = version_id.to_string()
|
version_id = version_id.to_string()
|
||||||
|
|
|
@ -254,7 +254,7 @@ impl Project {
|
||||||
let manifest = manifest.clone();
|
let manifest = manifest.clone();
|
||||||
let package_types = package_types.clone();
|
let package_types = package_types.clone();
|
||||||
|
|
||||||
let span = tracing::debug_span!(
|
let span = tracing::info_span!(
|
||||||
"link",
|
"link",
|
||||||
name = name.to_string(),
|
name = name.to_string(),
|
||||||
version_id = version_id.to_string()
|
version_id = version_id.to_string()
|
||||||
|
|
|
@ -11,10 +11,10 @@ use std::{
|
||||||
};
|
};
|
||||||
use tempfile::NamedTempFile;
|
use tempfile::NamedTempFile;
|
||||||
use tracing::instrument;
|
use tracing::instrument;
|
||||||
use tracing_indicatif::IndicatifLayer;
|
use tracing_indicatif::{filter::IndicatifFilter, IndicatifLayer};
|
||||||
use tracing_subscriber::{
|
use tracing_subscriber::{
|
||||||
filter::LevelFilter, fmt::time::uptime, layer::SubscriberExt, util::SubscriberInitExt,
|
filter::LevelFilter, fmt::time::uptime, layer::SubscriberExt, util::SubscriberInitExt,
|
||||||
EnvFilter,
|
EnvFilter, Layer,
|
||||||
};
|
};
|
||||||
|
|
||||||
mod cli;
|
mod cli;
|
||||||
|
@ -134,7 +134,7 @@ async fn run() -> anyhow::Result<()> {
|
||||||
std::process::exit(status.code().unwrap());
|
std::process::exit(status.code().unwrap());
|
||||||
}
|
}
|
||||||
|
|
||||||
let indicatif_layer = IndicatifLayer::new();
|
let indicatif_layer = IndicatifLayer::new().with_filter(IndicatifFilter::new(false));
|
||||||
|
|
||||||
let tracing_env_filter = EnvFilter::builder()
|
let tracing_env_filter = EnvFilter::builder()
|
||||||
.with_default_directive(LevelFilter::INFO.into())
|
.with_default_directive(LevelFilter::INFO.into())
|
||||||
|
@ -152,7 +152,7 @@ async fn run() -> anyhow::Result<()> {
|
||||||
.with(
|
.with(
|
||||||
tracing_subscriber::fmt::layer()
|
tracing_subscriber::fmt::layer()
|
||||||
.pretty()
|
.pretty()
|
||||||
.with_writer(indicatif_layer.get_stderr_writer())
|
.with_writer(indicatif_layer.inner().get_stderr_writer())
|
||||||
.with_timer(uptime()),
|
.with_timer(uptime()),
|
||||||
)
|
)
|
||||||
.with(indicatif_layer)
|
.with(indicatif_layer)
|
||||||
|
|
|
@ -102,7 +102,7 @@ impl Project {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
let span = tracing::debug_span!("resolve from old graph", alias);
|
let span = tracing::info_span!("resolve from old graph", alias);
|
||||||
let _guard = span.enter();
|
let _guard = span.enter();
|
||||||
|
|
||||||
tracing::debug!("resolved {}@{} from old dependency graph", name, version);
|
tracing::debug!("resolved {}@{} from old dependency graph", name, version);
|
||||||
|
@ -131,7 +131,7 @@ impl Project {
|
||||||
|
|
||||||
while let Some((dep_name, dep_version, path)) = queue.pop_front() {
|
while let Some((dep_name, dep_version, path)) = queue.pop_front() {
|
||||||
let inner_span =
|
let inner_span =
|
||||||
tracing::debug_span!("resolve dependency", path = path.join(">"));
|
tracing::info_span!("resolve dependency", path = path.join(">"));
|
||||||
let _inner_guard = inner_span.enter();
|
let _inner_guard = inner_span.enter();
|
||||||
if let Some(dep_node) = previous_graph
|
if let Some(dep_node) = previous_graph
|
||||||
.get(dep_name)
|
.get(dep_name)
|
||||||
|
@ -399,7 +399,7 @@ impl Project {
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
.instrument(tracing::debug_span!("resolve new/changed", path = path.join(">")))
|
.instrument(tracing::info_span!("resolve new/changed", path = path.join(">")))
|
||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue