Skip to content

Commit

Permalink
Update log in subscription_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Jun 21, 2024
1 parent fd7f619 commit 5a3500a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions main/networking/mqtt/subscription_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,17 @@
/* Subscription manager header include. */
#include "subscription_manager.h"

#define LogError( x )
#define LogWarn( x )
#define LogDebug( x )
#ifndef LogError
#define LogError( x )
#endif

#ifndef LogWarn
#define LogWarn( x )
#endif

#ifndef LogDebug
#define LogDebug( x )
#endif

bool addSubscription( SubscriptionElement_t * pxSubscriptionList,
const char * pcTopicFilterString,
Expand Down Expand Up @@ -78,7 +86,7 @@ bool addSubscription( SubscriptionElement_t * pxSubscriptionList,
if( ( pxSubscriptionList[ lIndex ].pxIncomingPublishCallback == pxIncomingPublishCallback ) &&
( pxSubscriptionList[ lIndex ].pvIncomingPublishCallbackContext == pvIncomingPublishCallbackContext ) )
{
/* LogWarn( ( "Subscription already exists.\n" ) ); */
LogWarn( ( "Subscription already exists.\n" ) );
xAvailableIndex = SUBSCRIPTION_MANAGER_MAX_SUBSCRIPTIONS;
xReturnStatus = true;
break;
Expand Down

0 comments on commit 5a3500a

Please sign in to comment.