diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-11 14:39:53 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 11:18:45 -0400 |
commit | 37431f6686b263b467aa2ad8c0e391e6cb74ce07 (patch) | |
tree | 0160708d13404158a3f9db0c47e0b7bddea8ed38 | |
parent | 7b0cef7802587e13df8c67f77fa591d869c14fc5 (diff) |
temporarily disable metrics
-rw-r--r-- | src/chttpd.erl | 4 | ||||
-rw-r--r-- | 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) |