diff --git a/build.sbt b/build.sbt index 4eaafc87..954bbed6 100644 --- a/build.sbt +++ b/build.sbt @@ -11,7 +11,7 @@ lazy val versionOf = new { val scalaCheck = "1.15.4" val scalaTest = "3.2.11" val zio = "1.0.13" - val scribe = "3.6.10" + val scribe = "3.7.1" val silencer = "1.7.8" } diff --git a/core/src/main/scala/log/effect/LogWriterConstructor.scala b/core/src/main/scala/log/effect/LogWriterConstructor.scala index 4c4b9959..8626ae1c 100644 --- a/core/src/main/scala/log/effect/LogWriterConstructor.scala +++ b/core/src/main/scala/log/effect/LogWriterConstructor.scala @@ -1,10 +1,10 @@ package log.effect import java.util.{logging => jul} - import log.effect.internal._ import log.effect.internal.syntax._ import org.{log4s => l4s} +import scribe.message.Message sealed trait LogWriterConstructor[R, G[_], F[_]] { def construction: G[R] => G[LogWriter[F]] @@ -89,8 +89,8 @@ object LogWriterConstructor { F.suspend( a match { - case Failure(msg, th) => scribeLogger.log(beLevel, msg, Some(th)) - case _ => scribeLogger.log(beLevel, a.show, None) + case Failure(msg, th) => scribeLogger.log(beLevel, msg, Message.static(th) :: Nil) + case _ => scribeLogger.log(beLevel, a.show, Nil) } ) }