Added more detailed logging for SSLHandshakeException (#1602)
* Added more detailed logging for SSLHandshakeException Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Fixed spotless errors for logging change Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Changed message to include original error and limited to specific instance Signed-off-by: Ryan Bogan <rbogan@amazon.com> * Applied troubleshooting message to all instances of SSlHandshakeException Signed-off-by: Ryan Bogan <rbogan@amazon.com>
This commit is contained in:
parent
4db97aa470
commit
7496f8058b
|
@ -912,7 +912,9 @@ public class RestClient implements Closeable {
|
|||
return e;
|
||||
}
|
||||
if (exception instanceof SSLHandshakeException) {
|
||||
SSLHandshakeException e = new SSLHandshakeException(exception.getMessage());
|
||||
SSLHandshakeException e = new SSLHandshakeException(
|
||||
exception.getMessage() + "\nSee https://opensearch.org/docs/latest/clients/java-rest-high-level/ for troubleshooting."
|
||||
);
|
||||
e.initCause(exception);
|
||||
return e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue