File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ int main()
8989 WebcfgDebug ("RBUS mode. webconfigRbusInit\n" );
9090 webconfigRbusInit (WEBCFG_COMPONENT_NAME );
9191 regWebConfigDataModel ();
92+ #ifdef WAN_FAILOVER_SUPPORTED
93+ subscribeTo_CurrentActiveInterface_Event ();
94+ #endif
9295 systemStatus = rbus_waitUntilSystemReady ();
9396 WebcfgDebug ("rbus_waitUntilSystemReady systemStatus is %d\n" , systemStatus );
9497 getCurrent_Time (& cTime );
@@ -99,9 +102,6 @@ int main()
99102 WanEventHandler ();
100103 // wait for upstream subscriber for 5mins
101104 waitForUpstreamEventSubscribe (300 );
102- #ifdef WAN_FAILOVER_SUPPORTED
103- subscribeTo_CurrentActiveInterface_Event ();
104- #endif
105105 ret = rbus_GetValueFromDB ( PARAM_RFC_ENABLE , & strValue );
106106 if (ret == 0 )
107107 {
Original file line number Diff line number Diff line change @@ -1926,7 +1926,7 @@ int set_rbus_ForceSync(char* pString, int *pStatus)
19261926 }
19271927 else if (get_global_webcfg_forcedsync_started () == 1 )
19281928 {
1929- WebcfgInfo ("Webcfg forced sync is in progress, Ignoring this request & will retry later.\n" );
1929+ WebcfgInfo ("Webcfg forced sync is in progress, Ignoring this request & will retry later.\n" );
19301930 * pStatus = 1 ;
19311931 return 0 ;
19321932 }
@@ -2061,7 +2061,7 @@ void waitForUpstreamEventSubscribe(int wait_time)
20612061{
20622062 int count = 0 ;
20632063 if (!subscribed )
2064- WebcfgError ("Waiting for %s event subscription for %ds\n" , WEBCFG_UPSTREAM_EVENT , wait_time );
2064+ WebcfgInfo ("Waiting for %s event subscription for %ds\n" , WEBCFG_UPSTREAM_EVENT , wait_time );
20652065 while (!subscribed )
20662066 {
20672067 sleep (5 );
@@ -2119,7 +2119,7 @@ static void subscribeAsyncHandler(
21192119int subscribeTo_CurrentActiveInterface_Event ()
21202120{
21212121 int rc = RBUS_ERROR_SUCCESS ;
2122- WebcfgDebug ("Subscribing to %s Event\n" , WEBCFG_INTERFACE_PARAM );
2122+ WebcfgInfo ("Subscribing to %s Event\n" , WEBCFG_INTERFACE_PARAM );
21232123 rc = rbusEvent_SubscribeAsync (
21242124 rbus_handle ,
21252125 WEBCFG_INTERFACE_PARAM ,
You can’t perform that action at this time.
0 commit comments