You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case class Example(i: Int) extends Throwable {
override def toString: String = s"$i"
}
val exampleObject = Example(3)
logger.error(s"Example $exampleObject")
I would expect the message output to be
Example 3
Instead I get
Example {}
The text was updated successfully, but these errors were encountered:
ranweizman
changed the title
logger.error macro error with Throwable as one of the arguments in the interpolated string
Problem with error logging having a throwable in the interpolated string
Aug 28, 2017
Assuming the following code
I would expect the message output to be
Instead I get
The text was updated successfully, but these errors were encountered: