Skip to content

Commit 2d04a19

Browse files
authored
Merge pull request #346 from scalecube/set-log-level-warn-in-cluster-transport
Set log level `warn` on transport connection error
2 parents b600886 + 55ebe34 commit 2d04a19

File tree

1 file changed

+3
-3
lines changed
  • transport-parent/transport-netty/src/main/java/io/scalecube/transport/netty

1 file changed

+3
-3
lines changed

transport-parent/transport-netty/src/main/java/io/scalecube/transport/netty/TransportImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private Message toMessage(ByteBuf byteBuf) {
241241
try (ByteBufInputStream stream = new ByteBufInputStream(byteBuf, true)) {
242242
return messageCodec.deserialize(stream);
243243
} catch (Exception e) {
244-
LOGGER.warn("[{}][toMessage] Exception occurred: {}", address, e.toString());
244+
LOGGER.warn("[{}][decodeMessage] Exception occurred: {}", address, e.toString());
245245
throw new DecoderException(e);
246246
}
247247
}
@@ -253,7 +253,7 @@ private ByteBuf toByteBuf(Message message) {
253253
messageCodec.serialize(message, stream);
254254
} catch (Exception e) {
255255
byteBuf.release();
256-
LOGGER.warn("[{}][toByteBuf] Exception occurred: {}", address, e.toString());
256+
LOGGER.warn("[{}][encodeMessage] Exception occurred: {}", address, e.toString());
257257
throw new EncoderException(e);
258258
}
259259
return byteBuf;
@@ -270,7 +270,7 @@ private Mono<? extends Connection> connect0(Address address1) {
270270
})
271271
.doOnError(
272272
th -> {
273-
LOGGER.debug(
273+
LOGGER.warn(
274274
"[{}][connect0][{}] Exception occurred: {}", address, address1, th.toString());
275275
connections.remove(address1);
276276
})

0 commit comments

Comments
 (0)