Skip to content

Commit

Permalink
Revert cast logger fix error attempt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grryum committed Nov 22, 2023
1 parent e88a1c9 commit 7e1b9f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand All @@ -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") {
Expand Down

0 comments on commit 7e1b9f2

Please sign in to comment.