From c3caaf783863e6ec81296b651f867249d46dcde4 Mon Sep 17 00:00:00 2001 From: Peter Kotula Date: Fri, 14 Jul 2023 14:49:19 +0200 Subject: [PATCH] filter --- .../src/main/scala/zio/logging/FilterBenchmarks.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/src/main/scala/zio/logging/FilterBenchmarks.scala b/benchmarks/src/main/scala/zio/logging/FilterBenchmarks.scala index 3cd0b311..e1106ae5 100644 --- a/benchmarks/src/main/scala/zio/logging/FilterBenchmarks.scala +++ b/benchmarks/src/main/scala/zio/logging/FilterBenchmarks.scala @@ -38,7 +38,7 @@ class FilterBenchmarks { } ) Runtime.removeDefaultLoggers >>> makeSystemOutLogger(LogFormat.default.toLogger) - .map(logger => FilteredLogger(logger, filter)) + .filter(filter) .install } @@ -55,7 +55,7 @@ class FilterBenchmarks { .toFilter Runtime.removeDefaultLoggers >>> makeSystemOutLogger(LogFormat.default.toLogger) - .map(logger => FilteredLogger(logger, filter)) + .filter(filter) .install } @@ -73,7 +73,7 @@ class FilterBenchmarks { .cached Runtime.removeDefaultLoggers >>> makeSystemOutLogger(LogFormat.default.toLogger) - .map(logger => FilteredLogger(logger, filter)) + .filter(filter) .install }