dosubot[bot] commented on issue #12537: URL: https://github.com/apache/apisix/issues/12537#issuecomment-3204318862
<!-- Answer --> The http-logger plugin is designed to respect the `include_resp_body` flag—when set to false, the response body should not be included in logs. The plugin collects the response body during the response phase, but the actual inclusion in the log entry is controlled by conditional logic in the logging utility. If you're seeing the response body in logs despite the flag being false, this points to a bug or logic error in the log entry construction, not a misconfiguration. There are no recent fixes or known issues for this in APISIX 3.12.0, and the intended behavior is clear in both the documentation and code: the body should only be present if `include_resp_body` is true ([source](https://github.com/apache/apisix/blob/4dc0a067bab4e56a868fba2e1234e966a5526ebe/apisix/plugins/http-logger.lua)). If you haven't customized `log_format`, and the flag is set correctly, this is likely a bug in the plugin or its utility logic. You may want to check for any overrides or customizations at the route/service/global level, but based on the code and docs, the flag should work as described. _Written by @dosu, approved by moonming_ <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c7fb925e-1dbe-4d5a-945d-b151e5ac8a59?feedback_type=other)</sup> [](https://app.dosu.dev/6aff3395-54f4-4ca2-8624-021d21c2f031/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/apisix/issues/12537) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org