Find Throwable.printStackTrace() calls

Proprietary

e.printStackTrace() writes the throwable's stack frames straight to System.err, bypassing whatever logger the application configures. Use log.error("context", e) so the throwable flows through SLF4J's last-arg-is-Throwable convention and ends up in the same sink as the rest of your errors.

org.openrewrite.kotlin.logging.FindPrintStackTrace$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.logging.FindPrintStackTrace$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.