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 2020/08/20 19:02:20 UTC

[couchdb] branch dont-log-client-disconnects created (now e5ee8d6)

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a change to branch dont-log-client-disconnects
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at e5ee8d6  Don't log client disconnects

This branch includes the following new commits:

     new e5ee8d6  Don't log client disconnects

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Don't log client disconnects

Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch dont-log-client-disconnects
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e5ee8d6179aac126e782fea47f11805e5dee31aa
Author: Robert Newson <rn...@apache.org>
AuthorDate: Thu Aug 20 20:01:52 2020 +0100

    Don't log client disconnects
---
 src/chttpd/src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index 5a3e3fa..6ac1275 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -1187,6 +1187,8 @@ maybe_decompress(Httpd, Body) ->
 
 log_error_with_stack_trace({bad_request, _, _}) ->
     ok;
+log_error_with_stack_trace({<<"unknown_error">>,<<"normal">>, _}) ->
+    ok;
 log_error_with_stack_trace({Error, Reason, Stack}) ->
     EFmt = if is_binary(Error) -> "~s"; true -> "~w" end,
     RFmt = if is_binary(Reason) -> "~s"; true -> "~w" end,