Disable explicit LangChain4j request and response logging (OWASP LLM02)
ProprietaryReplace 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. DisableLlmRequestLoggingmod run . --recipe= org. openrewrite. ai. security. DisableLlmRequestLoggingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.