From 29d46fd36aaf0da7041973f3c0e49096bd978adc Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Wed, 20 Nov 2024 12:43:28 +0000 Subject: [PATCH] chore: embed package name in logs (#6564) --- compiler/noirc_driver/src/lib.rs | 2 +- cspell.json | 1 + tooling/nargo/src/ops/compile.rs | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/noirc_driver/src/lib.rs b/compiler/noirc_driver/src/lib.rs index d10029d81e6..72ea464805f 100644 --- a/compiler/noirc_driver/src/lib.rs +++ b/compiler/noirc_driver/src/lib.rs @@ -282,7 +282,7 @@ pub fn add_dep( /// /// This returns a (possibly empty) vector of any warnings found on success. /// On error, this returns a non-empty vector of warnings and error messages, with at least one error. -#[tracing::instrument(level = "trace", skip(context))] +#[tracing::instrument(level = "trace", skip_all)] pub fn check_crate( context: &mut Context, crate_id: CrateId, diff --git a/cspell.json b/cspell.json index d8315c35910..a386ed80ee9 100644 --- a/cspell.json +++ b/cspell.json @@ -235,6 +235,7 @@ "varargs", "vecmap", "vitkov", + "walkdir", "wasi", "wasmer", "Weierstraß", diff --git a/tooling/nargo/src/ops/compile.rs b/tooling/nargo/src/ops/compile.rs index cd9ccf67957..8c44bf35243 100644 --- a/tooling/nargo/src/ops/compile.rs +++ b/tooling/nargo/src/ops/compile.rs @@ -75,6 +75,7 @@ pub fn compile_program( ) } +#[tracing::instrument(level = "trace", name = "compile_program" skip_all, fields(package = package.name.to_string()))] pub fn compile_program_with_debug_instrumenter( file_manager: &FileManager, parsed_files: &ParsedFiles, @@ -92,6 +93,7 @@ pub fn compile_program_with_debug_instrumenter( noirc_driver::compile_main(&mut context, crate_id, compile_options, cached_program) } +#[tracing::instrument(level = "trace", skip_all, fields(package_name = package.name.to_string()))] pub fn compile_contract( file_manager: &FileManager, parsed_files: &ParsedFiles,