Skip to content

Commit 0578aae

Browse files
authored
feat: print IPC path (#7526)
* feat: print ipc path * moved if check * moved println
1 parent bd56eef commit 0578aae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/anvil/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,17 @@ impl NodeHandle {
237237
pub(crate) fn print(&self, fork: Option<&ClientFork>) {
238238
self.config.print(fork);
239239
if !self.config.silent {
240+
if let Some(ipc_path) = self.ipc_path() {
241+
println!("IPC path: {}", ipc_path);
242+
}
240243
println!(
241244
"Listening on {}",
242245
self.addresses
243246
.iter()
244247
.map(|addr| { addr.to_string() })
245248
.collect::<Vec<String>>()
246249
.join(", ")
247-
)
250+
);
248251
}
249252
}
250253

0 commit comments

Comments
 (0)