Repository: trafficserver Updated Branches: refs/heads/master 2e55f1b8e -> 8ae1aabd5
Improve the is_response_cacheable debug message Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8ae1aabd Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8ae1aabd Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8ae1aabd Branch: refs/heads/master Commit: 8ae1aabd53ac6753a8c625b835f55b06a5aa1511 Parents: 2e55f1b Author: James Peach <[email protected]> Authored: Mon Apr 21 16:35:48 2014 -0700 Committer: James Peach <[email protected]> Committed: Mon Apr 21 16:35:48 2014 -0700 ---------------------------------------------------------------------- proxy/http/HttpTransact.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8ae1aabd/proxy/http/HttpTransact.cc ---------------------------------------------------------------------- diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index e00dce6..636d84f 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -4127,9 +4127,8 @@ HttpTransact::handle_cache_operation_on_forward_server_response(State* s) bool cacheable = false; cacheable = is_response_cacheable(s, &s->hdr_info.client_request, &s->hdr_info.server_response); - if (cacheable) { - DebugTxn("http_trans", "[hcoofsr] response cacheable"); - } + DebugTxn("http_trans", "[hcoofsr] response %s cacheable", cacheable ? "is" : "is not"); + // set the correct next action, cache action, response code, and base response server_response_code = s->hdr_info.server_response.status_get();
