From a3fec89cdff0deda1c30d15bd0503af2f9b824e2 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 21 Jan 2009 02:31:36 +0000 Subject: don't log thrown errors in http requests, just things like badmatch etc git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@736194 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index a9c7320a..996bcf49 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -152,6 +152,8 @@ handle_request(MochiReq, UrlHandlers, DbUrlHandlers) -> 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()]), -- cgit v1.2.3