Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Log message will be raw (no traceId or any other metadata which comming with logentries lib), if AndroidLogger.getInstance().setSendRawLogMessage(false) was set. #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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