Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug messges when State changes #1734

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

davidBar-On
Copy link
Contributor

  • Version of iperf3 (or development branch, such as master or
    3.1-STABLE) to which this pull request applies:
    Master

  • Issues fixed (if any): None

  • Brief description of code changes (suitable for use as a commit message):
    Added DEBUG_LEVEL_INFO debug messages when state changes. I found these debug messages useful in different error cases, especially when there is a problem with the client/server interface.

@bmah888
Copy link
Contributor

bmah888 commented Jul 17, 2024

Thanks for the pull request! Just having glanced over it, this seems like a good thing to have, especially since the test state machine isn't super-well-documented and I personally regard it as a bit of magic.

@davidBar-On
Copy link
Contributor Author

... especially since the test state machine isn't super-well-documented ...

To better help with this I added a very short textual description of the states to the debug messages (and added some debug messages in additional places where the state is changed).

Copy link
Contributor

@bmah888 bmah888 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I think this will be very helpful for developers.

src/iperf_util.c Outdated Show resolved Hide resolved
@davidBar-On davidBar-On force-pushed the state_change_debug_messages branch from 218e072 to 3f7dbae Compare July 27, 2024 09:12
Copy link
Contributor

@bmah888 bmah888 left a comment

Choose a reason for hiding this comment

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

+1 to merge this

@bmah888 bmah888 self-assigned this Jul 28, 2024
@bmah888 bmah888 merged commit ac4205b into esnet:master Jul 28, 2024
3 checks passed
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.

2 participants