couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [2/7] chttpd commit: updated refs/heads/1993-bigcouch-couch-mrview to 93c771d
Date Fri, 28 Mar 2014 18:45:52 GMT
Ask couch_httpd:log_request not to log a duplicate line


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/927a8d11
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/927a8d11
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/927a8d11

Branch: refs/heads/1993-bigcouch-couch-mrview
Commit: 927a8d11ba127484ab46a5c46ccc7c5b95db1acf
Parents: 30e7912
Author: Robert Newson <robert.newson@cloudant.com>
Authored: Wed Feb 12 22:52:20 2014 +0000
Committer: Robert Newson <robert.newson@cloudant.com>
Committed: Wed Feb 12 22:52:20 2014 +0000

----------------------------------------------------------------------
 src/chttpd.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/927a8d11/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 4c6cfc4..2ff7189 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -198,6 +198,9 @@ handle_request(MochiReq) ->
     % put small token on heap to keep requests synced to backend calls
     erlang:put(nonce, couch_util:to_hex(crypto:rand_bytes(4))),
 
+    % suppress duplicate log
+    erlang:put(dont_log_request, true),
+
     Result =
     try
         case authenticate_request(HttpReq, AuthenticationFuns) of


Mime
View raw message