From 7e1b9f2de1b924a09f7628673048e97fc491726a Mon Sep 17 00:00:00 2001 From: Vladislav Ugryumov Date: Thu, 23 Nov 2023 00:20:43 +0300 Subject: [PATCH] Revert cast logger fix error attempt. --- build.sbt | 4 +--- .../src/test/scala-2/tofu/logging/zlogs/ZLogsSpec.scala | 6 ++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 225f0feb0..4f476ee48 100644 --- a/build.sbt +++ b/build.sbt @@ -3,10 +3,8 @@ import sbt.ModuleID import org.typelevel.scalacoptions.{ScalacOption, ScalaVersion, ScalacOptions} import scala.Ordering.Implicits._ -ThisBuild / useLog4J := false - lazy val defaultSettings = Seq( - scalaVersion := Version.scala3, + scalaVersion := Version.scala213, scalacWarningConfig, Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement, Compile / doc / tpolecatExcludeOptions ++= Set(ScalacOptions.fatalWarnings, ScalacOptions.warnError), diff --git a/modules/interop/zio2/logging/src/test/scala-2/tofu/logging/zlogs/ZLogsSpec.scala b/modules/interop/zio2/logging/src/test/scala-2/tofu/logging/zlogs/ZLogsSpec.scala index 03b183988..c49103036 100644 --- a/modules/interop/zio2/logging/src/test/scala-2/tofu/logging/zlogs/ZLogsSpec.scala +++ b/modules/interop/zio2/logging/src/test/scala-2/tofu/logging/zlogs/ZLogsSpec.scala @@ -50,7 +50,8 @@ case object ZLogsSpec extends ZIOSpecDefault { testCount ) }.provide( - Runtime.removeDefaultLoggers >>> TofuZLogger.addToRuntime, + Runtime.removeDefaultLoggers, + TofuZLogger.addToRuntime, LogAppender.layer(loggerName) ), test("TofuZLogger uses user-defined logger name") { @@ -69,7 +70,8 @@ case object ZLogsSpec extends ZIOSpecDefault { } ) @@ ZLogAnnotation.loggerName(myLoggerName) }.provide( - Runtime.removeDefaultLoggers >>> TofuZLogger.addToRuntime, + Runtime.removeDefaultLoggers, + TofuZLogger.addToRuntime, LogAppender.layer(myLoggerName) ), test("ZLogs") {