Skip to content

Commit

Permalink
scribe update (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
barambani authored Feb 14, 2022
1 parent 38fe37a commit cebd65d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/log/effect/LogWriterConstructor.scala
Original file line number Diff line number Diff line change
@@ -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]]
Expand Down Expand Up @@ -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)
}
)
}
Expand Down

0 comments on commit cebd65d

Please sign in to comment.