Skip to content

DISPATCH-2247: Added router id to log message#1414

Merged
asfgit merged 1 commit intoapache:mainfrom
ganeshmurthy:DISPATCH-2247
Nov 1, 2021
Merged

DISPATCH-2247: Added router id to log message#1414
asfgit merged 1 commit intoapache:mainfrom
ganeshmurthy:DISPATCH-2247

Conversation

@ganeshmurthy
Copy link
Contributor

No description provided.

// which will help us in debugging.
//
char *r_id = 0;
bool free_rid = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the free_rid thing. It is safe to call 'free' on a null pointer.

free_rid = true;
}
}
qd_log(msync->log, QD_LOG_ERROR, "Received MAU from an unknown router with router id %s", r_id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a similar log for MAR messages. For completeness, you should probably add the router_id to that one too.

@asfgit asfgit merged commit 5804a70 into apache:main Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants