@@ -11,7 +11,7 @@ use actix::{
1111} ;
1212use anyhow:: { anyhow, bail} ;
1313use crossbeam:: channel:: { unbounded, Receiver , Sender } ;
14- use slog:: { debug, error, info , Logger } ;
14+ use slog:: { debug, error, Logger } ;
1515use std:: net:: SocketAddr ;
1616use std:: ops:: ControlFlow :: { self , * } ;
1717use std:: path:: { Path , PathBuf } ;
@@ -120,15 +120,15 @@ impl PocketIcProxy {
120120
121121 fn stop_pocketic_proxy ( & mut self ) {
122122 if self . stop_sender . is_some ( ) || self . thread_join . is_some ( ) {
123- info ! ( self . logger, "Stopping HTTP gateway..." ) ;
123+ debug ! ( self . logger, "Stopping HTTP gateway..." ) ;
124124 if let Some ( sender) = self . stop_sender . take ( ) {
125125 let _ = sender. send ( ( ) ) ;
126126 }
127127
128128 if let Some ( join) = self . thread_join . take ( ) {
129129 let _ = join. join ( ) ;
130130 }
131- info ! ( self . logger, "Stopped." ) ;
131+ debug ! ( self . logger, "Stopped." ) ;
132132 }
133133 }
134134
@@ -211,9 +211,9 @@ impl Handler<PocketIcProxyReadySubscribe> for PocketIcProxy {
211211impl Handler < PocketIcProxyReadySignal > for PocketIcProxy {
212212 type Result = ( ) ;
213213
214- fn handle ( & mut self , _msg : PocketIcProxyReadySignal , _ctx : & mut Self :: Context ) {
214+ fn handle ( & mut self , msg : PocketIcProxyReadySignal , _ctx : & mut Self :: Context ) {
215215 for sub in & self . ready_subscribers {
216- sub. do_send ( PocketIcProxyReadySignal ) ;
216+ sub. do_send ( msg ) ;
217217 }
218218 }
219219}
@@ -309,10 +309,9 @@ fn pocketic_proxy_start_thread(
309309 }
310310 Ok ( i) => i,
311311 } ;
312- info ! ( logger, "Replica API running on {address}" ) ;
313312
314313 // Send PocketIcProxyReadySignal to PocketIcProxy.
315- addr. do_send ( PocketIcProxyReadySignal ) ;
314+ addr. do_send ( PocketIcProxyReadySignal ( address ) ) ;
316315
317316 // This waits for the child to stop, or the receiver to receive a message.
318317 // We don't restart pocket-ic if done = true.
@@ -384,7 +383,7 @@ async fn initialize_gateway(
384383 CreateHttpGatewayResponse :: Created ( info) => info. instance_id ,
385384 CreateHttpGatewayResponse :: Error { message } => bail ! ( "Gateway init error: {message}" ) ,
386385 } ;
387- info ! ( logger, "Initialized HTTP gateway." ) ;
386+ debug ! ( logger, "Initialized HTTP gateway." ) ;
388387 Ok ( instance)
389388}
390389
0 commit comments