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

Enhance handleNewMessage Server Mode Logging: Convert Error Logs to Debug Level #860

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

GheisMohammadi
Copy link
Contributor

@GheisMohammadi GheisMohammadi commented Aug 10, 2023

The current implementation of the handleNewMessage function exclusively processes messages in server mode, generating error logs and returning false for non-server mode cases. This leads to a repetitive logging of this error message whenever the node isn't in server mode:
ignoring incoming dht message while not in server mode
This PR enhances the function by elevating the error log to the debug level.

@guillaumemichel guillaumemichel merged commit 6d9adb0 into libp2p:master Aug 10, 2023
11 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.

3 participants