Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: embed package name in logs #6564

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/noirc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@
"varargs",
"vecmap",
"vitkov",
"walkdir",
"wasi",
"wasmer",
"Weierstraß",
Expand Down
2 changes: 2 additions & 0 deletions tooling/nargo/src/ops/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Loading