Find string concatenation in log.error(...)

Proprietary

log.error("failed: " + e) mixes the throwable into the message string, losing the stack trace. Use the parameterized form with the throwable as the last argument: log.error("failed", e).

org.openrewrite.kotlin.logging.FindStringConcatInLogError$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.logging.FindStringConcatInLogError$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.