From fb3b687ee02098282c9504c9cfe43d56c323184c Mon Sep 17 00:00:00 2001 From: Martin Winandy Date: Fri, 25 Jul 2014 21:22:19 +0200 Subject: [PATCH] Code style in logback benchmark --- .../src/org/pmw/benchmark/frameworks/LogbackBenchmark.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/benchmark/src/org/pmw/benchmark/frameworks/LogbackBenchmark.java b/benchmark/src/org/pmw/benchmark/frameworks/LogbackBenchmark.java index 63e34c40f..4413ccd9e 100644 --- a/benchmark/src/org/pmw/benchmark/frameworks/LogbackBenchmark.java +++ b/benchmark/src/org/pmw/benchmark/frameworks/LogbackBenchmark.java @@ -131,10 +131,7 @@ private LayoutWrappingEncoder createEncoder(final LoggerContext c PatternLayoutEncoder encoder = new PatternLayoutEncoder(); encoder.setContext(context); encoder.setPattern("%date{yyyy-MM-dd HH:mm:ss} [%thread] %class.%method\\(\\): %message%n"); - encoder.setImmediateFlush(true); - if (async) { - encoder.setImmediateFlush(false); - } + encoder.setImmediateFlush(!async); return encoder; }