Skip to content

Commit

Permalink
Merge pull request #346 from AleoHQ/feat/tracing
Browse files Browse the repository at this point in the history
Update span message
  • Loading branch information
howardwu authored Sep 3, 2020
2 parents 788300e + 6c24c06 commit 60ea14d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion leo/commands/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl CLI for BuildCommand {
#[cfg_attr(tarpaulin, skip)]
fn output(_options: Self::Options) -> Result<Self::Output, CLIError> {
// Begin "Compiling" context for console logging
let span = tracing::span!(tracing::Level::INFO, "Compiler");
let span = tracing::span!(tracing::Level::INFO, "Compiling");
let enter = span.enter();

let path = current_dir()?;
Expand Down
6 changes: 3 additions & 3 deletions leo/commands/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ impl CLI for ProveCommand {
fn output(options: Self::Options) -> Result<Self::Output, CLIError> {
let (program, parameters, prepared_verifying_key) = SetupCommand::output(options)?;

// Begin "Prover" context for console logging
let span = tracing::span!(tracing::Level::INFO, "Prover");
// Begin "Proving" context for console logging
let span = tracing::span!(tracing::Level::INFO, "Proving");
let enter = span.enter();

// Get the package name
Expand All @@ -72,7 +72,7 @@ impl CLI for ProveCommand {
program_proof.write(&mut proof)?;
ProofFile::new(&package_name).write_to(&path, &proof)?;

// Drop "Prover" context for console logging
// Drop "Proving" context for console logging
drop(enter);

// Begin "Done" context for console logging
Expand Down

0 comments on commit 60ea14d

Please sign in to comment.