Find Throwable.printStackTrace() calls

Proprietary

printStackTrace() writes the throwable straight to System.err, bypassing whatever structured logger the application uses. Route the throwable through a logger so log levels, MDCs, and sinks apply.

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