From 64f4ec41a58ea97d1ebbbe38e18041a5149073b2 Mon Sep 17 00:00:00 2001 From: David St-Onge Date: Thu, 31 Aug 2017 17:25:34 -0400 Subject: [PATCH] log prints in graphform --- buzz_scripts/graphform.bzz | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buzz_scripts/graphform.bzz b/buzz_scripts/graphform.bzz index c395c11..a857309 100644 --- a/buzz_scripts/graphform.bzz +++ b/buzz_scripts/graphform.bzz @@ -546,8 +546,10 @@ function DoAsking(){ #the request Label be the same as requesed #get a respond if(m_MessageState[i]=="STATE_JOINED"){ + log("received label = ",m_MessageReqLabel[i]) if(m_MessageReqLabel[i]==m_nLabel) if(m_MessageResponse[i]!="REQ_NONE"){ + log("get response") psResponse=i }} i=i+1 @@ -565,6 +567,7 @@ function DoAsking(){ } } else{ + log("respond id=",m_MessageReqID[psResponse]) if(m_MessageReqID[psResponse]!=m_unRequestId){ m_vecNodes[m_nLabel].State="ASSIGNING" m_vecNodes[m_nLabel].StateAge=m_unJoiningLostPeriod @@ -675,10 +678,13 @@ function DoJoined(){ while(i