Skip to content

Commit 6a8e8b2

Browse files
committed
Node/testing: adding logging when spawning OCaml process
1 parent 797d954 commit 6a8e8b2

File tree

1 file changed

+10
-3
lines changed
  • node/testing/src/node/ocaml

1 file changed

+10
-3
lines changed

node/testing/src/node/ocaml/mod.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ mod config;
22
pub use config::*;
33
use mina_core::{thread, ChainId};
44
use mina_p2p_messages::v2::StateHash;
5-
use node::p2p::{
6-
connection::outgoing::{P2pConnectionOutgoingInitLibp2pOpts, P2pConnectionOutgoingInitOpts},
7-
PeerId,
5+
use node::{
6+
core::log::{info, system_time},
7+
p2p::{
8+
connection::outgoing::{
9+
P2pConnectionOutgoingInitLibp2pOpts, P2pConnectionOutgoingInitOpts,
10+
},
11+
PeerId,
12+
},
813
};
914

1015
use std::{
@@ -126,7 +131,9 @@ impl OcamlNode {
126131
cmd.stdout(std::process::Stdio::piped())
127132
.stderr(std::process::Stdio::piped());
128133

134+
info!(system_time(); "Spawning OCaml daemon process");
129135
let mut child = cmd.spawn()?;
136+
info!(system_time(); "OCaml daemon process started with PID: {:?}", child.id());
130137

131138
let stdout = child
132139
.stdout

0 commit comments

Comments
 (0)