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

Client & Server debug feature implementation #184

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

rmruano
Copy link
Contributor

@rmruano rmruano commented Sep 27, 2021

Not having debug information makes it very difficult to debug communication issues between client & server.

This PR implements a pretty standard debug log that can be activated with a simple debug: true option. By default, the debug log is disabled, there won't be any output to stdout.

Additionally, the session object emits debug events in both client & server (even with the debug option disabled)

Tests to check the debug events have been written. Also, some new tests to perform client/server simulations are included.

@coveralls
Copy link

coveralls commented Sep 27, 2021

Coverage Status

Coverage increased (+1.3%) to 78.67% when pulling 4e1feb2 on rmruano:feature/debug into eabd32d on farhadi:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.2%) to 78.611% when pulling 44b1fe0 on rmruano:feature/debug into eabd32d on farhadi:master.

…d from the socket presence. The mode it's only used for debug purposes but it's an useful feature to have.
@juliangut juliangut merged commit 4ea9684 into farhadi:master Sep 27, 2021
@juliangut juliangut added this to the 0.6.0 milestone Sep 27, 2021
@rmruano rmruano deleted the feature/debug branch September 28, 2021 08:26
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.

None yet

3 participants