You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/11/24 21:16:20 UTC
[3/4] chttpd commit: updated refs/heads/master to 7dcf127
Refactor logging statement
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/21abde55
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/21abde55
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/21abde55
Branch: refs/heads/master
Commit: 21abde5588b244743294bf647c745dbd75bb4997
Parents: 5e44123
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Thu Nov 19 10:10:39 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Thu Nov 19 10:10:39 2015 -0800
----------------------------------------------------------------------
src/chttpd.erl | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/21abde55/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 1bfc223..5459f9b 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -290,12 +290,11 @@ catch_error(HttpReq, exit, {mochiweb_recv_error, E}) ->
peer = Peer,
original_method = Method
} = HttpReq,
- LogForClosedSocket = io_lib:format("mochiweb_recv_error for ~s - ~p ~s", [
+ couch_log:notice("mochiweb_recv_error for ~s - ~p ~s - ~p", [
Peer,
Method,
- MochiReq:get(raw_path)
- ]),
- couch_log:notice(LogForClosedSocket ++ " - ~p", [E]),
+ MochiReq:get(raw_path),
+ E]),
exit(normal);
catch_error(HttpReq, exit, {uri_too_long, _}) ->
send_error(HttpReq, request_uri_too_long);