couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r736194 - /couchdb/trunk/src/couchdb/couch_httpd.erl
Date Wed, 21 Jan 2009 02:31:36 GMT
Author: jchris
Date: Tue Jan 20 18:31:36 2009
New Revision: 736194

URL: http://svn.apache.org/viewvc?rev=736194&view=rev
Log:
don't log thrown errors in http requests, just things like badmatch etc

Modified:
    couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=736194&r1=736193&r2=736194&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Tue Jan 20 18:31:36 2009
@@ -152,6 +152,8 @@
     try
         HandlerFun(HttpReq#httpd{user_ctx=AuthenticationFun(HttpReq)})
     catch
+        throw:Error ->
+            send_error(HttpReq, Error);
         Tag:Error ->
             ?LOG_ERROR("Uncaught error in HTTP request: ~p",[{Tag, Error}]),
             ?LOG_DEBUG("Stacktrace: ~p",[erlang:get_stacktrace()]),



Mime
View raw message