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 }