mirror of https://github.com/apache/nifi.git
NIFI-8083: SSLSocketChannel Logging Improvement
Fixed additional logs messages with same issue Signed-off-by: Matthew Burgess <mattyb149@apache.org> This closes #4722
This commit is contained in:
parent
7bff64b3cf
commit
8eb0db6b38
|
@ -170,10 +170,7 @@ public class SSLSocketChannel implements Closeable {
|
||||||
|
|
||||||
connected = true;
|
connected = true;
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
logger.error("{} Failed to connect due to {}", this, e);
|
logger.error("{} failed to connect", this, e);
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.error("", e);
|
|
||||||
}
|
|
||||||
closeQuietly(channel);
|
closeQuietly(channel);
|
||||||
engine.closeInbound();
|
engine.closeInbound();
|
||||||
engine.closeOutbound();
|
engine.closeOutbound();
|
||||||
|
@ -397,10 +394,7 @@ public class SSLSocketChannel implements Closeable {
|
||||||
try {
|
try {
|
||||||
readCount = channel.read(writableInBuffer);
|
readCount = channel.read(writableInBuffer);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("{} Failed to readData due to {}", new Object[]{this, e});
|
logger.error("{} failed to read data", this, e);
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.error("", e);
|
|
||||||
}
|
|
||||||
readCount = -1; // treat the condition same as if End of Stream
|
readCount = -1; // treat the condition same as if End of Stream
|
||||||
}
|
}
|
||||||
if (readCount == 0) {
|
if (readCount == 0) {
|
||||||
|
@ -428,10 +422,7 @@ public class SSLSocketChannel implements Closeable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("{} Failed to check if closed due to {}. Closing channel.", new Object[]{this, e});
|
logger.error("{} failed to check if closed. Closing channel.", this, e);
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.error("", e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// either readCount is -1, indicating an end of stream, or the peer sent a closure handshake
|
// either readCount is -1, indicating an end of stream, or the peer sent a closure handshake
|
||||||
|
|
Loading…
Reference in New Issue