Skip to content

Commit

Permalink
upgrade zio version (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Apr 4, 2022
1 parent 8f6d45c commit 8a9d663
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inThisBuild(
)
)

val ZioVersion = "2.0.0-RC3"
val ZioVersion = "2.0.0-RC4"
val scalaJavaTimeVersion = "2.3.0"
val slf4jVersion = "1.7.35"

Expand Down
2 changes: 1 addition & 1 deletion core/jvm/src/test/scala/zio/logging/LogFormatSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import zio.{ Cause, FiberId, LogLevel, ZTraceElement }

import LogFormat.{ level, line, _ }

object LogFormatSpec extends DefaultRunnableSpec {
object LogFormatSpec extends ZIOSpecDefault {
val spec: ZSpec[Environment, Failure] = suite("LogFormatSpec")(
test("line") {
val format = line
Expand Down
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/zio/logging/LogFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package zio.logging

import zio.logging.internal._
import zio.{ Cause, FiberId, LogLevel, LogSpan, ZFiberRef, ZLogger, ZTraceElement }
import zio.{ Cause, FiberId, FiberRef, LogLevel, LogSpan, ZLogger, ZTraceElement }

import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
Expand Down Expand Up @@ -126,7 +126,7 @@ trait LogFormat { self =>
logLevel: LogLevel,
message: () => String,
cause: Cause[Any],
context: Map[ZFiberRef.Runtime[_], AnyRef],
context: Map[FiberRef[_], Any],
spans: List[LogSpan],
annotations: Map[String, String]
) => {
Expand Down Expand Up @@ -166,7 +166,7 @@ object LogFormat {
LogLevel,
() => String,
Cause[Any],
Map[ZFiberRef.Runtime[_], AnyRef],
Map[FiberRef[_], Any],
List[LogSpan],
Map[String, String]
) => Any
Expand All @@ -177,7 +177,7 @@ object LogFormat {
logLevel: LogLevel,
message: () => String,
cause: Cause[Any],
context: Map[ZFiberRef.Runtime[_], AnyRef],
context: Map[FiberRef[_], Any],
spans: List[LogSpan],
annotations: Map[String, String]
) => {
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/zio/logging/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ package object logging {
* This code would add the structured log annotation [[LogAnnotation.UserId]]
* to all log messages emitted by the `myResponseHandler(request)` effect.
*/
val logContext: FiberRef.Runtime[LogContext] =
val logContext: FiberRef[LogContext] =
FiberRef.unsafeMake(LogContext.empty, identity, (old, newV) => old ++ newV)

def console(
Expand Down
2 changes: 1 addition & 1 deletion project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object BuildHelper {
val Scala213: String = versions("2.13")
val ScalaDotty: String = versions("3.1")

val SilencerVersion = "1.7.7"
val SilencerVersion = "1.7.8"

private val stdOptions = Seq(
"-deprecation",
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ addSbtPlugin("com.typesafe" % "sbt-mima-plugin"
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.1.0")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.9.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
Expand Down
4 changes: 2 additions & 2 deletions slf4j/src/main/scala/zio/logging/slf4j/SLF4J.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package zio.logging.backend
import com.github.ghik.silencer.silent
import org.slf4j.{ LoggerFactory, MDC }
import zio.logging.LogFormat
import zio.{ Cause, FiberId, LogLevel, LogSpan, RuntimeConfigAspect, ZFiberRef, ZLogger, ZTraceElement }
import zio.{ Cause, FiberId, FiberRef, LogLevel, LogSpan, RuntimeConfigAspect, ZLogger, ZTraceElement }

import scala.collection.JavaConverters._

Expand Down Expand Up @@ -42,7 +42,7 @@ object SLF4J {
logLevel: LogLevel,
message: () => String,
cause: Cause[Any],
context: Map[ZFiberRef.Runtime[_], AnyRef],
context: Map[FiberRef[_], Any],
spans: List[LogSpan],
annotations: Map[String, String]
): Unit =
Expand Down

0 comments on commit 8a9d663

Please sign in to comment.