Match if (is*Enabled()) with logging statements
MSALChange any if (is*Enabled()) statements that do not match the maximum log level used in the then part to use the matching is*Enabled() method for that log level. This ensures that the logging condition is consistent with the actual logging statements.
org. openrewrite. java. logging. slf4j. MatchIsLogLevelEnabledWithLogStatementsmod run . --recipe= org. openrewrite. java. logging. slf4j. MatchIsLogLevelEnabledWithLogStatementsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.