Skip to content

Commit 342c09d

Browse files
committed
Log path
1 parent c79f2d2 commit 342c09d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/node.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ where
119119

120120
let kind = config.kind();
121121

122-
debug!("Spawning {kind} with config {config:?}");
122+
debug!("Spawning {kind} with config {config:?}",);
123123

124124
let stdout_path = config.log_path();
125125
let stdout_file = File::create(&stdout_path).context("Failed to create stdout file")?;
@@ -168,7 +168,12 @@ where
168168
.stdout(Stdio::from(stdout_file))
169169
.stderr(Stdio::from(stderr_file))
170170
.spawn()
171-
.map_err(|e| anyhow!("Failed to spawn {kind} process: {e}"))
171+
.map_err(|e| {
172+
anyhow!(
173+
"Failed to spawn {kind} at path {} process: {e}",
174+
citrea.display()
175+
)
176+
})
172177
.map(SpawnOutput::Child)
173178
}
174179

0 commit comments

Comments
 (0)