Disable explicit LangChain4j request and response logging (OWASP LLM02)

Proprietary

Replace explicit true and Boolean.TRUE arguments to LangChain4j logRequests, logResponses, and logRequestsAndResponses calls with false. This prevents these logging flags from copying prompts and completions into application logs. Dynamic flags, no-argument methods, custom loggers, and Spring AI advisors are not changed. Logging useful for debugging will be disabled; use FindLlmPromptLogging to review other logging paths.

org.openrewrite.ai.security.DisableLlmRequestLogging
mod run . --recipe=org.openrewrite.ai.security.DisableLlmRequestLogging

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