Skip to content

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

Merged
guillaumemichel merged 1 commit intolibp2p:masterfrom
GheisMohammadi:fix/servermode_log
Aug 10, 2023
Merged

Enhance handleNewMessage Server Mode Logging: Convert Error Logs to Debug Level#860
guillaumemichel merged 1 commit intolibp2p:masterfrom
GheisMohammadi:fix/servermode_log

Conversation

@GheisMohammadi
Copy link
Copy Markdown
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
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