Skip to content
This repository was archived by the owner on Dec 14, 2023. 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 @@ -342,8 +342,11 @@ public void run() {
}

if (message != null) {
this.leClient.write(Utils.formatMessage(message.replace("\n", LINE_SEP_REPLACER),
logHostName, useHttpPost));
if(sendRawLogMessage){
Copy link

@rwtaylorjr rwtaylorjr Feb 5, 2018

Choose a reason for hiding this comment

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

Unless i'm missing something, the variable name seems to contradict the intent. If sendRawLogMessage is true, the raw log message along with other information (TraceID, DeviceID, Timestamp, etc...) will be written to the output. Where as if sendRawLogMessage is false, it just sends the message without any additional meta-data.

this.leClient.write(Utils.formatMessage(message.replace("\n", LINE_SEP_REPLACER),logHostName, useHttpPost));
}else{
this.leClient.write(message.replace("\n", LINE_SEP_REPLACER));
}
message = null;
}

Expand Down