Skip to content

Commit

Permalink
Fix deprecation warning in default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
morgen-peschke committed May 31, 2024
1 parent 8ed6876 commit f3c11d2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import cats.kernel.Hash
import cats.syntax.all.*
import org.typelevel.log4cats.{Logger, StructuredLogger}

import scala.annotation.nowarn

sealed trait LogMessage {
def level: LogLevel

Expand All @@ -47,6 +49,7 @@ sealed trait LogMessage {

override def toString: String = LogMessage.logMessageShow.show(this)

@nowarn("msg=deprecated")
@deprecated("Missing fields, will be removed when feasible", since = "2.1.2")
def copy(l: LogLevel = level, tOpt: Option[Throwable] = error, msg: String = message): LogMessage
}
Expand Down

0 comments on commit f3c11d2

Please sign in to comment.