Skip to content

Commit

Permalink
Release 1.0.2: Fixes message content
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 committed Dec 9, 2021
1 parent 0005e74 commit 76712d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.flattened-pom.xml
.idea/
target/
2 changes: 1 addition & 1 deletion src/main/java/com/teragrep/jla_06/RelpAppender.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public void append(LogEvent event) {
.withAppName(this.getAppName())
.withHostname(this.getHostname())
.withFacility(Facility.USER)
.withMsg(event.toString());
.withMsg(new String(getLayout().toByteArray(event), StandardCharsets.UTF_8));

// Add SD if enabled
if (this.getUseSD()) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/teragrep/jla_06/RelpAppenderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public void testUsage() {
LogManager.shutdown(true);
});
}
}
}

0 comments on commit 76712d4

Please sign in to comment.