From 37431f6686b263b467aa2ad8c0e391e6cb74ce07 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 11 Jun 2010 14:39:53 -0400 Subject: temporarily disable metrics --- src/chttpd.erl | 4 ++-- src/chttpd_db.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chttpd.erl b/src/chttpd.erl index 649b23bc..f3c4a9da 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -145,8 +145,8 @@ handle_request(MochiReq) -> Resp:get(code), RequestTime ], - Customer = cloudant_util:customer_name(HttpReq), - couch_metrics_req:notify({request, [Customer|RequestInfo]}), + % Customer = cloudant_util:customer_name(HttpReq), + % couch_metrics_req:notify({request, [Customer|RequestInfo]}), showroom_log:message(notice, "~s ~s ~s ~s ~B ~B", RequestInfo), couch_stats_collector:record({couchdb, request_time}, RequestTime), couch_stats_collector:increment({httpd, requests}), diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl index 9e04ffa1..3b35220a 100644 --- a/src/chttpd_db.erl +++ b/src/chttpd_db.erl @@ -143,7 +143,7 @@ create_db_req(#httpd{user_ctx=UserCtx}=Req, DbName) -> delete_db_req(#httpd{user_ctx=UserCtx}=Req, DbName) -> case fabric:delete_db(DbName, [{user_ctx, UserCtx}]) of ok -> - couch_metrics_disk:notify({db_delete, {UserCtx#user_ctx.name, DbName}}), + % couch_metrics_disk:notify({db_delete, {UserCtx#user_ctx.name, DbName}}), send_json(Req, 200, {[{ok, true}]}); Error -> throw(Error) -- cgit v1.2.3