Repository navigation
Improve fatal messages in disconnect_server and disconnect_client - #1382
Merged
Merged
Conversation
These functions are called from many places so it's hard to figure out what might have caused an issue with an unexpected state. This helps narrowing that down by including the provided reason in the fatal message.
Member
|
There is one case (see Some Since you are working on this area, I suggest that you also do the same for "bad server state" messages. We already had bugs in this area (see #927 , #928). |
Member
Author
Oops, yeah fixed now. Regarding the function name in the fatal log messages. That's already happening, see the original bug report (it even includes the line number): #1376 That's because the /** Log and die. It also logs source location */
#define fatal(...) do { LOG_CONTEXT_DEF; \
log_fatal(__FILE__, __LINE__, __func__, false, LOG_CONTEXT, __VA_ARGS__); \
exit(1); } while (0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These functions are called from many places so it's hard to figure out what might have caused an issue with an unexpected state. This helps narrowing that down by including the provided reason in the fatal message.
Related to #1376