Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into wan_restore_update_2
Browse files Browse the repository at this point in the history
  • Loading branch information
suvi-123 committed Jul 13, 2023
2 parents 298584d + e2f2851 commit 0d2631a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ int main()
WebcfgDebug("RBUS mode. webconfigRbusInit\n");
webconfigRbusInit(WEBCFG_COMPONENT_NAME);
regWebConfigDataModel();
#ifdef WAN_FAILOVER_SUPPORTED
subscribeTo_CurrentActiveInterface_Event();
#endif
systemStatus = rbus_waitUntilSystemReady();
WebcfgDebug("rbus_waitUntilSystemReady systemStatus is %d\n", systemStatus);
getCurrent_Time(&cTime);
Expand All @@ -99,9 +102,6 @@ int main()
WanEventHandler();
// wait for upstream subscriber for 5mins
waitForUpstreamEventSubscribe(300);
#ifdef WAN_FAILOVER_SUPPORTED
subscribeTo_CurrentActiveInterface_Event();
#endif
ret = rbus_GetValueFromDB( PARAM_RFC_ENABLE, &strValue );
if (ret == 0)
{
Expand Down
6 changes: 3 additions & 3 deletions src/webcfg_rbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ int set_rbus_ForceSync(char* pString, int *pStatus)
}
else if(get_global_webcfg_forcedsync_started() ==1)
{
WebcfgInfo("Webcfg forced sync is in progress, Ignoring this request & will retry later.\n");
WebcfgInfo("Webcfg forced sync is in progress, Ignoring this request & will retry later.\n");
*pStatus = 1;
return 0;
}
Expand Down Expand Up @@ -2061,7 +2061,7 @@ void waitForUpstreamEventSubscribe(int wait_time)
{
int count=0;
if(!subscribed)
WebcfgError("Waiting for %s event subscription for %ds\n", WEBCFG_UPSTREAM_EVENT, wait_time);
WebcfgInfo("Waiting for %s event subscription for %ds\n", WEBCFG_UPSTREAM_EVENT, wait_time);
while(!subscribed)
{
sleep(5);
Expand Down Expand Up @@ -2119,7 +2119,7 @@ static void subscribeAsyncHandler(
int subscribeTo_CurrentActiveInterface_Event()
{
int rc = RBUS_ERROR_SUCCESS;
WebcfgDebug("Subscribing to %s Event\n", WEBCFG_INTERFACE_PARAM);
WebcfgInfo("Subscribing to %s Event\n", WEBCFG_INTERFACE_PARAM);
rc = rbusEvent_SubscribeAsync (
rbus_handle,
WEBCFG_INTERFACE_PARAM,
Expand Down

0 comments on commit 0d2631a

Please sign in to comment.