Skip to content

Commit

Permalink
Merge pull request #302 from DataDog/maxime/fix-rfc3339-option
Browse files Browse the repository at this point in the history
Fix --log_format_rfc3339 option
  • Loading branch information
hush-hush authored Jun 18, 2020
2 parents 53f7eac + ba87d63 commit 16cd83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/datadog/jmxfetch/util/CustomLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void setup(Level level, String logLocation, boolean logFormatRfc33
final Configuration config = ctx.getConfiguration();
String target = "CONSOLE";

String logPattern = logFormatRfc3339 ? LAYOUT : LAYOUT_RFC3339;
String logPattern = logFormatRfc3339 ? LAYOUT_RFC3339 : LAYOUT;

if (logLocation != null
&& !ConsoleAppender.Target.SYSTEM_ERR.toString().equals(logLocation)
Expand Down

0 comments on commit 16cd83c

Please sign in to comment.