kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 00883e9d0d4d6e63c5b7b09e855eea16015849142ebbc49aa1ccc7023263ed12 |
|---|---|
| Author | tommy stendahl <tommy.stendahl@ericsson.com> · 2015-06-30 08:43 +02:00 |
| Committer | tommy stendahl <tommy.stendahl@ericsson.com> · 2015-06-30 08:43 +02:00 |
| Parents | 21fb534fc88b |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +3 −3
| @@ -516,7 +516,7 @@ | ||
| 516 | 516 | throw new ConnectionException(address, "Connection has been closed"); |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | - logger.trace("{} writing request {}", this, request); | |
| 519 | + logger.trace("{}, stream {}, writing request {}", this, request.getStreamId(), request); | |
| 520 | 520 | writer.incrementAndGet(); |
| 521 | 521 | |
| 522 | 522 | if (DISABLE_COALESCING) { |
| @@ -538,7 +538,7 @@ | ||
| 538 | 538 | writer.decrementAndGet(); |
| 539 | 539 | |
| 540 | 540 | if (!writeFuture.isSuccess()) { |
| 541 | - logger.debug("{} Error writing request {}", Connection.this, request); | |
| 541 | + logger.debug("{}, stream {}, Error writing request {}", Connection.this, request.getStreamId(), request); | |
| 542 | 542 | // Remove this handler from the dispatcher so it don't get notified of the error |
| 543 | 543 | // twice (we will fail that method already) |
| 544 | 544 | dispatcher.removeHandler(handler, true); |
| @@ -955,7 +955,7 @@ | ||
| 955 | 955 | int streamId = response.getStreamId(); |
| 956 | 956 | |
| 957 | 957 | if(logger.isTraceEnabled()) |
| 958 | - logger.trace("{}, stream {}, received: {}", Connection.this, response.getStreamId(), asDebugString(response)); | |
| 958 | + logger.trace("{}, stream {}, received: {}", Connection.this, streamId, asDebugString(response)); | |
| 959 | 959 | |
| 960 | 960 | if (streamId < 0) { |
| 961 | 961 | factory.defaultHandler.handle(response); |