You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/02/12 23:53:17 UTC
[2/2] chttpd commit: updated refs/heads/1843-feature-bigcouch to
927a8d1
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/1843-feature-bigcouch
Commit: 927a8d11ba127484ab46a5c46ccc7c5b95db1acf
Parents: 30e7912
Author: Robert Newson <ro...@cloudant.com>
Authored: Wed Feb 12 22:52:20 2014 +0000
Committer: Robert Newson <ro...@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