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

PAN-2286 - quieter exceptions when network is unreachable #1133

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Mar 19, 2019

PR description

Lower the log level of discovery connections to unreachable networks,
such as a box without IPv6 enabled connecting to an IPv6 peer.

Fixed Issue(s)

PAN-2286

Lower the log level of discovery connections to unreachable networks,
such as a box without IPv6 enabled connecting to an IPv6 peer.
peer,
wrapBuffer(packet.encode()),
err);
if (err instanceof SocketException && err.getMessage().contains("unreachable")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (err instanceof SocketException && err.getMessage().contains("unreachable")) {
if (err instanceof SocketException && err.getMessage().equals("Network is unreachable")) {

@shemnon
Copy link
Contributor Author

shemnon commented Mar 19, 2019 via email

@shemnon shemnon merged commit a9b3f34 into PegaSysEng:master Mar 19, 2019
@shemnon shemnon deleted the PAN-2286 branch April 14, 2019 03:03
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