diff options
author | Jan Lehnardt <jan@apache.org> | 2009-10-18 02:10:04 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-10-18 02:10:04 +0000 |
commit | 430b75f7572d3033fe61e341d0ee5ff1167831e2 (patch) | |
tree | fd4622a4da1f240ad97153b18f844f1490a79fb7 /src/couchdb/couch_httpd_external.erl | |
parent | 75364fead46acbb370efaf5c84ffdc31529d7c31 (diff) |
log external reqests like any other requests
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826345 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_external.erl')
-rw-r--r-- | src/couchdb/couch_httpd_external.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_external.erl b/src/couchdb/couch_httpd_external.erl index bae7a410..0a26bcf7 100644 --- a/src/couchdb/couch_httpd_external.erl +++ b/src/couchdb/couch_httpd_external.erl @@ -94,13 +94,14 @@ to_json_terms([{Key, Value} | Rest], Acc) -> to_json_terms(Rest, [{list_to_binary(Key), list_to_binary(Value)} | Acc]). -send_external_response(#httpd{mochi_req=MochiReq}, Response) -> +send_external_response(#httpd{mochi_req=MochiReq}=Req, Response) -> #extern_resp_args{ code = Code, data = Data, ctype = CType, headers = Headers } = parse_external_response(Response), + couch_httpd:log_request(Req, Code), Resp = MochiReq:respond({Code, default_or_content_type(CType, Headers ++ couch_httpd:server_header()), Data}), {ok, Resp}. |