@@ -15,6 +15,7 @@ use super::{
15
15
use crate :: {
16
16
abstractions:: dbg_panic,
17
17
internal_flags:: InternalFlags ,
18
+ log_to_file:: log_to_file,
18
19
protosext:: {
19
20
protocol_messages:: { IncomingProtocolMessage , IncomingProtocolMessageBody } ,
20
21
CompleteLocalActivityData , HistoryEventExt , ValidScheduleLA ,
@@ -1447,6 +1448,11 @@ impl WorkflowMachines {
1447
1448
}
1448
1449
1449
1450
fn get_machine_by_msg ( & self , protocol_instance_id : & str ) -> Result < MachineKey > {
1451
+ log_to_file (
1452
+ & format ! ( "protocol_instance_id: {protocol_instance_id}" ) ,
1453
+ "sdk-core:get_machine_by_msg" ,
1454
+ "blue" ,
1455
+ ) ;
1450
1456
Ok ( * self
1451
1457
. machines_by_protocol_instance_id
1452
1458
. get ( protocol_instance_id)
@@ -1490,6 +1496,11 @@ impl WorkflowMachines {
1490
1496
}
1491
1497
1492
1498
fn add_new_protocol_machine ( & mut self , machine : Machines , instance_id : String ) -> MachineKey {
1499
+ log_to_file (
1500
+ & format ! ( "protocol_instance_id: {instance_id}" ) ,
1501
+ "add_new_protocol_machine" ,
1502
+ "blue" ,
1503
+ ) ;
1493
1504
let k = self . all_machines . insert ( machine) ;
1494
1505
self . machines_by_protocol_instance_id . insert ( instance_id, k) ;
1495
1506
k
0 commit comments