couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch-log commit: updated refs/heads/master to 35ace62
Date Fri, 10 Oct 2014 13:01:06 GMT
Repository: couchdb-couch-log
Updated Branches:
  refs/heads/master 1bd5cf58c -> 35ace62be


couch_stats is an optional dependency


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/commit/35ace62b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/tree/35ace62b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/diff/35ace62b

Branch: refs/heads/master
Commit: 35ace62beaa6eab3c0c8676f430555a14ced23e2
Parents: 1bd5cf5
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Oct 10 14:00:37 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Oct 10 14:00:37 2014 +0100

----------------------------------------------------------------------
 src/couch_log.app.src |  2 +-
 src/couch_log.erl     | 16 ++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/35ace62b/src/couch_log.app.src
----------------------------------------------------------------------
diff --git a/src/couch_log.app.src b/src/couch_log.app.src
index 0231860..f8372ca 100644
--- a/src/couch_log.app.src
+++ b/src/couch_log.app.src
@@ -15,5 +15,5 @@
     {vsn, git},
     {modules, [couch_log]},
     {registered, []},
-    {applications, [kernel, stdlib, lager, couch_stats]}
+    {applications, [kernel, stdlib, lager]}
 ]}.

http://git-wip-us.apache.org/repos/asf/couchdb-couch-log/blob/35ace62b/src/couch_log.erl
----------------------------------------------------------------------
diff --git a/src/couch_log.erl b/src/couch_log.erl
index 9c5b7e8..256a4ef 100644
--- a/src/couch_log.erl
+++ b/src/couch_log.erl
@@ -15,33 +15,33 @@
 -export([debug/2, info/2, notice/2, warning/2, error/2, critical/2, alert/2, emergency/2]).
 
 debug(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, debug]),
+    catch couch_stats:increment_counter([couch_log, level, debug]),
     lager:debug(Fmt, Args).
 
 info(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, info]),
+    catch couch_stats:increment_counter([couch_log, level, info]),
     lager:info(Fmt, Args).
 
 notice(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, notice]),
+    catch couch_stats:increment_counter([couch_log, level, notice]),
     lager:notice(Fmt, Args).
 
 warning(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, warning]),
+    catch couch_stats:increment_counter([couch_log, level, warning]),
     lager:warning(Fmt, Args).
 
 error(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, error]),
+    catch couch_stats:increment_counter([couch_log, level, 'error']),
     lager:error(Fmt, Args).
 
 critical(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, critical]),
+    catch couch_stats:increment_counter([couch_log, level, critical]),
     lager:critical(Fmt, Args).
 
 alert(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, alert]),
+    catch couch_stats:increment_counter([couch_log, level, alert]),
     lager:alert(Fmt, Args).
 
 emergency(Fmt, Args) ->
-    couch_stats:increment_counter([couch_log, level, emergency]),
+    catch couch_stats:increment_counter([couch_log, level, emergency]),
     lager:emergency(Fmt, Args).


Mime
View raw message