couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [2/4] git commit: Use the correct warning log function
Date Sun, 17 Aug 2014 02:14:08 GMT
Use the correct warning log function


Project: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/commit/e697e993
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/tree/e697e993
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/diff/e697e993

Branch: refs/heads/windsor-merge
Commit: e697e993c05a5316bf54c40193b7a43a50b76ac4
Parents: bc74f28
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sat Aug 16 21:12:29 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Sat Aug 16 21:12:29 2014 -0500

----------------------------------------------------------------------
 src/cassim_metadata_cache.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/e697e993/src/cassim_metadata_cache.erl
----------------------------------------------------------------------
diff --git a/src/cassim_metadata_cache.erl b/src/cassim_metadata_cache.erl
index 335256b..509b22a 100644
--- a/src/cassim_metadata_cache.erl
+++ b/src/cassim_metadata_cache.erl
@@ -162,7 +162,7 @@ changes_callback({change, {Change}}, _) ->
         false ->
             case couch_util:get_value(doc, Change) of
                 {error, Reason} ->
-                    couch_log:warn(
+                    couch_log:warning(
                         "could not retrieve metadata doc ~s: ~p", [Id, Reason]);
                 Props ->
                     gen_server:cast(?MODULE, {insert_cached_meta, {Id, Props}})
@@ -185,7 +185,7 @@ load_meta_from_db(DbName, MetaId) ->
         {ok, Doc} ->
             couch_doc:to_json_obj(Doc, []);
         _Else ->
-            couch_log:warn("no record of meta ~s", [MetaId]),
+            couch_log:warning("no record of meta ~s", [MetaId]),
             undefined
     catch error:database_does_not_exist ->
         undefined


Mime
View raw message