Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;

import static oap.logstream.LogStreamProtocol.MESSAGE_TYPE;
Expand Down Expand Up @@ -124,8 +125,9 @@ private void readBinaryV2( ProtocolVersion version, String hostName, DataInputSt
var buffer = new byte[length];
in.readFully( buffer, 0, length );

log.trace( "[{}] logging (properties {} filePreffix {} logType {} headers {} types {}, {})",
hostName, properties, filePreffix, logType, headers, types, length );
log.trace( "[{}] logging (properties {} filePreffix {} logType {} headers {} types {} data {} length {})",
hostName, properties, filePreffix, logType, headers, types,
"|" + new String( buffer, StandardCharsets.UTF_8 ).replace( "\n", "|" ), length );
Comment on lines +128 to +130
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would the binary data look like in such a trace?


backend.log( version, clientHostname, filePreffix, properties, logType, headers, types, buffer, 0, length );
}
Expand Down