From a2fe907839557d1c11d831b52bc47419cb650f64 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Mon, 23 Dec 2024 17:07:45 +0000 Subject: [PATCH] . --- Cargo.lock | 1 + tooling/nargo/src/ops/check.rs | 1 + tooling/nargo_cli/Cargo.toml | 1 + tooling/nargo_cli/src/cli/mod.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 8f8d02af77a..bc1e328554b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2857,6 +2857,7 @@ dependencies = [ "tokio-util 0.7.12", "toml 0.7.8", "tower", + "tracing", "tracing-appender", "tracing-subscriber", ] diff --git a/tooling/nargo/src/ops/check.rs b/tooling/nargo/src/ops/check.rs index 707353ccdad..f22def8bd91 100644 --- a/tooling/nargo/src/ops/check.rs +++ b/tooling/nargo/src/ops/check.rs @@ -3,6 +3,7 @@ use noirc_driver::{CompiledProgram, ErrorsAndWarnings}; use noirc_errors::{CustomDiagnostic, FileDiagnostic}; /// Run each function through a circuit simulator to check that they are solvable. +#[tracing::instrument(level = "trace", skip_all)] pub fn check_program(compiled_program: &CompiledProgram) -> Result<(), ErrorsAndWarnings> { for (i, circuit) in compiled_program.program.functions.iter().enumerate() { let mut simulator = CircuitSimulator::default(); diff --git a/tooling/nargo_cli/Cargo.toml b/tooling/nargo_cli/Cargo.toml index 5603b7f4fca..9b52a73ce35 100644 --- a/tooling/nargo_cli/Cargo.toml +++ b/tooling/nargo_cli/Cargo.toml @@ -65,6 +65,7 @@ notify-debouncer-full = "0.3.1" termion = "3.0.0" # Logs +tracing.workspace = true tracing-subscriber.workspace = true tracing-appender = "0.2.3" clap_complete = "4.5.36" diff --git a/tooling/nargo_cli/src/cli/mod.rs b/tooling/nargo_cli/src/cli/mod.rs index cc72092daa1..43e3de9c6d0 100644 --- a/tooling/nargo_cli/src/cli/mod.rs +++ b/tooling/nargo_cli/src/cli/mod.rs @@ -116,6 +116,7 @@ enum NargoCommand { } #[cfg(not(feature = "codegen-docs"))] +#[tracing::instrument(level = "trace")] pub(crate) fn start_cli() -> eyre::Result<()> { let NargoCli { command, mut config } = NargoCli::parse();