Skip to content

Commit 0d2631a

Browse files
committed
Merge remote-tracking branch 'upstream/master' into wan_restore_update_2
2 parents 298584d + e2f2851 commit 0d2631a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

src/webcfg_rbus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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(
21192119
int 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,

0 commit comments

Comments
 (0)