summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-03-15 01:27:28 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-03-15 01:27:28 +0000
commita6fb15dd8594fc06c32aaeeac055e9697ceab553 (patch)
tree11f22c12d09eb77738a99bf3042d45ccc236693c /src/couchdb
parentdb6c33efaab3f16495e439fc01ccd5f55a0ece43 (diff)
verbose error logging turned back on for http requests and log_level = debug
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index 2ba684a8..4dfbd954 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -165,8 +165,10 @@ handle_request(MochiReq, UrlHandlers, DbUrlHandlers, DesignUrlHandlers) ->
HandlerFun(HttpReq#httpd{user_ctx=AuthenticationFun(HttpReq)})
catch
throw:Error ->
+ % ?LOG_DEBUG("Minor error in HTTP request: ~p",[Error]),
+ % ?LOG_DEBUG("Stacktrace: ~p",[erlang:get_stacktrace()]),
send_error(HttpReq, Error);
- Tag:Error when Error ==foo ->
+ Tag:Error ->
?LOG_ERROR("Uncaught error in HTTP request: ~p",[{Tag, Error}]),
?LOG_DEBUG("Stacktrace: ~p",[erlang:get_stacktrace()]),
send_error(HttpReq, Error)