Skip to content

Commit 7fe1872

Browse files
committed
chore: add debug logging
1 parent b200f8a commit 7fe1872

File tree

2 files changed

+4
-2
lines changed
  • .github/workflows
  • packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-zksyncos-node/src/instance

2 files changed

+4
-2
lines changed

.github/workflows/ci-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
- name: Run rust tests with nextest (zksync-os)
208208
env:
209209
SSO_TEST_NODE_BACKEND: zksyncos
210-
SSO_ZKSYNC_OS_PRINT_LOGS: "false"
210+
SSO_ZKSYNC_OS_PRINT_LOGS: "true"
211211
run: cargo nextest run --profile ci --all-features
212212
working-directory: packages/sdk-platforms/rust/zksync-sso-erc4337
213213

packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-zksyncos-node/src/instance/setup.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ fn run_command(mut cmd: Command, print_logs: bool, label: &str) -> Result<()> {
293293
.wrap_err_with(|| format!("failed to run command: {label}"))?;
294294
if !output.status.success() {
295295
return Err(eyre::eyre!(
296-
"command {label} failed: {}",
296+
"command {label} failed (status: {:?})\nstdout:\n{}\nstderr:\n{}",
297+
output.status,
298+
String::from_utf8_lossy(&output.stdout),
297299
String::from_utf8_lossy(&output.stderr)
298300
));
299301
}

0 commit comments

Comments
 (0)