Closed
Description
Just noticed
val e = new RuntimeException(...)
log.info(s"exc: $e")
and
log.info(s"exc: ${e.toString}")
end up with different log messages.
Due to string interpolation conversion error, first one produces:
"exc: {}
java.lang.RuntimeException: Exception
at ...
"
Probbably $e is not treated as argument to slf4j's interpolation, but as exception argument.
So interpolation doesn't work, and one gets unwanted stacktrace.
marcin
Metadata
Metadata
Assignees
Labels
No labels