Skip to content

Commit

Permalink
Refine error logging.
Browse files Browse the repository at this point in the history
[#458]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
  • Loading branch information
mp911de committed Oct 19, 2021
1 parent e8c92a3 commit ca4dd62
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ private ReactorNettyClient(Connection connection, ConnectionSettings settings) {

connection.inbound().receive()
.map(BackendMessageDecoder::decode)
.doOnError(throwable -> {
receiveError.set(throwable);
handleConnectionError(throwable);
})
.doOnError(receiveError::set)
.<BackendMessage>handle((backendMessage, sink) -> {

if (consumeMessage(backendMessage)) {
Expand Down Expand Up @@ -235,7 +232,7 @@ private Mono<Void> resumeError(Throwable throwable) {
if (isSslException(throwable)) {
logger.debug(this.context.getMessage("Connection Error"), throwable);
} else {
logger.error(this.context.getMessage("Connection Error"), throwable);
logger.warn(this.context.getMessage("Connection Error"), throwable);
}

return close();
Expand Down

0 comments on commit ca4dd62

Please sign in to comment.