Elffuss BraidHub

kikocis/java-driver public

Log streamid at the trace level on sending and receiving (JAVA-718)
Changeset21fb534fc88ba556249a403d34718fe7eb0cf7f9986fce7a310c7dfe4d5200aa
Authortommy stendahl <tommy.stendahl@ericsson.com> · 2015-06-26 08:28 +02:00
Committertommy stendahl <tommy.stendahl@ericsson.com> · 2015-06-26 08:28 +02:00
Parentsa8fd72b9ccb6

Browse the files at this changeset

2 files changed

modified changelog/README.md +1 −0
@@ -2,6 +2,7 @@
22
33 ### 2.0.11 (in progress)
44
5+- [improvement] Log streamid at the trace level on sending request and receiving response (JAVA-718)
56 - [bug] Fix SpeculativeExecutionPolicy.init() and close() are never called (JAVA-796)
67 - [improvement] Suppress unnecessary warning at shutdown (JAVA-710)
78 - [improvement] Allow DNS name with multiple A-records as contact point (#340)
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +2 −2
@@ -562,7 +562,7 @@
562562 }
563563 });
564564 } else {
565- logger.trace("{} request sent successfully", Connection.this);
565+ logger.trace("{}, stream {}, request sent successfully", Connection.this, request.getStreamId());
566566 }
567567 }
568568 };
@@ -955,7 +955,7 @@
955955 int streamId = response.getStreamId();
956956
957957 if(logger.isTraceEnabled())
958- logger.trace("{} received: {}", Connection.this, asDebugString(response));
958+ logger.trace("{}, stream {}, received: {}", Connection.this, response.getStreamId(), asDebugString(response));
959959
960960 if (streamId < 0) {
961961 factory.defaultHandler.handle(response);