diff --git a/artio-core/src/main/java/uk/co/real_logic/artio/engine/framer/FixSenderEndPoint.java b/artio-core/src/main/java/uk/co/real_logic/artio/engine/framer/FixSenderEndPoint.java index e3137ee0a9..7dbec5fab2 100644 --- a/artio-core/src/main/java/uk/co/real_logic/artio/engine/framer/FixSenderEndPoint.java +++ b/artio-core/src/main/java/uk/co/real_logic/artio/engine/framer/FixSenderEndPoint.java @@ -343,8 +343,7 @@ private int writeBuffer( ByteBufferUtil.position(buffer, writePosition); final int written = channel.write(buffer, seqNum, replay); - ByteBufferUtil.position(buffer, bufferOffset); - DebugLogger.logBytes(FIX_MESSAGE_TCP, "Written ", buffer, writePosition, written); + DebugLogger.log(FIX_MESSAGE_TCP, "Written ", directBuffer, offset + reattemptBytesWritten, written); buffer.limit(startLimit).position(startPosition);