Skip to content

Commit cdf39cc

Browse files
authored
Merge pull request #728 from blessme247/feature/deduplicate-execution-start
feat: fix duplicate execution start banner emission
2 parents 9619670 + 51c0acd commit cdf39cc

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/cli/commands.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,9 @@ pub fn run(args: RunArgs, verbosity: Verbosity) -> Result<()> {
669669
}
670670

671671
// Execute locally with debugging
672-
if !args.is_json_output() {
673-
println!("\n--- Execution Start ---\n");
674-
}
672+
// if !args.is_json_output() {
673+
// println!("\n--- Execution Start ---\n");
674+
// }
675675
if args.instruction_debug {
676676
print_info("Enabling instruction-level debugging...");
677677
engine.enable_instruction_debug(&wasm_bytes)?;
@@ -687,7 +687,7 @@ pub fn run(args: RunArgs, verbosity: Verbosity) -> Result<()> {
687687
return Ok(());
688688
}
689689
}
690-
690+
691691
print_info("\n--- Execution Start ---\n");
692692
output_writer.write("\n--- Execution Start ---\n")?;
693693
let storage_before = engine.executor().get_storage_snapshot()?;

src/plugin/loader.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ pub fn check_api_version(plugin_version: u32) -> Result<(), crate::plugin::api::
463463
}
464464
Ok(())
465465
}
466+
} }
466467

467468
#[cfg(test)]
468469
mod tests {
@@ -522,6 +523,7 @@ mod version_tests {
522523
fn test_api_version_check() {
523524
let result = check_api_version(999);
524525
assert!(matches!(result, Err(PluginError::VersionMismatch { .. })));
526+
}
525527

526528
#[test]
527529
fn test_loader_creation() {
@@ -663,3 +665,6 @@ mod version_tests {
663665
);
664666
let result_ok = check_api_version(PLUGIN_API_VERSION);
665667
assert!(result_ok.is_ok());
668+
}
669+
}
670+
}

0 commit comments

Comments
 (0)