Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Reduce logging noise from invalid peer discovery packets and handshaking #876

Merged
merged 3 commits into from
Feb 18, 2019

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Feb 17, 2019

PR description

The debug logs are full of invalid peer discovery packet exceptions. These are just normal validation failures which ideally wouldn't have required throwing an exception at all (not an exceptional condition). The source of the validation failure can be located using the error message so exclude the stack trace from the logs.

Additionally the ECIESHandshaker print a debug message for every step of the process which should be at trace level.

@ajsutton ajsutton changed the title Reduce logging noise from invalid peer discovery packets Reduce logging noise from invalid peer discovery packets and handshaking Feb 17, 2019
@ajsutton ajsutton merged commit 19ea520 into PegaSysEng:master Feb 18, 2019
@ajsutton ajsutton deleted the invalid-peer-discovery-packet branch February 18, 2019 20:14
rain-on pushed a commit to rain-on/pantheon that referenced this pull request Feb 18, 2019
…ing (PegaSysEng#876)

* Reduce logging for invalid peer discovery packets. The message is enough to locate the source of the rejection.

* Reduce ECIESHandshaker logging to trace since it documents a normal flow through the handshake process.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants