Skip to content

Commit

Permalink
feat: print IPC path (#7526)
Browse files Browse the repository at this point in the history
* feat: print ipc path

* moved if check

* moved println
  • Loading branch information
kamuik16 authored Apr 1, 2024
1 parent bd56eef commit 0578aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/anvil/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,17 @@ impl NodeHandle {
pub(crate) fn print(&self, fork: Option<&ClientFork>) {
self.config.print(fork);
if !self.config.silent {
if let Some(ipc_path) = self.ipc_path() {
println!("IPC path: {}", ipc_path);
}
println!(
"Listening on {}",
self.addresses
.iter()
.map(|addr| { addr.to_string() })
.collect::<Vec<String>>()
.join(", ")
)
);
}
}

Expand Down

0 comments on commit 0578aae

Please sign in to comment.