You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/02/13 00:23:21 UTC

couch commit: updated refs/heads/1843-feature-bigcouch to b130524

Updated Branches:
  refs/heads/1843-feature-bigcouch 8f0f70ca8 -> b13052435


Change API to function per level


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

Branch: refs/heads/1843-feature-bigcouch
Commit: b1305243573253d70adc49b93d5ecf4bb321c34a
Parents: 8f0f70c
Author: Robert Newson <rn...@apache.org>
Authored: Wed Feb 12 23:23:13 2014 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Feb 12 23:23:13 2014 +0000

----------------------------------------------------------------------
 include/couch_db.hrl | 8 ++++----
 src/couch_file.erl   | 2 +-
 src/couch_httpd.erl  | 2 +-
 src/couch_sup.erl    | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b1305243/include/couch_db.hrl
----------------------------------------------------------------------
diff --git a/include/couch_db.hrl b/include/couch_db.hrl
index e1deeb2..fdc353b 100644
--- a/include/couch_db.hrl
+++ b/include/couch_db.hrl
@@ -35,10 +35,10 @@
 
 -define(DEFAULT_ATTACHMENT_CONTENT_TYPE, <<"application/octet-stream">>).
 
--define(LOG_DEBUG(Format, Args), couch_log:log(debug, Format, Args)).
--define(LOG_INFO(Format, Args), couch_log:log(info, Format, Args)).
--define(LOG_WARN(Format, Args), couch_log:log(warn, Format, Args)).
--define(LOG_ERROR(Format, Args), couch_log:log(error, Format, Args)).
+-define(LOG_DEBUG(Format, Args), couch_log:debug(Format, Args)).
+-define(LOG_INFO(Format, Args), couch_log:info(Format, Args)).
+-define(LOG_WARN(Format, Args), couch_log:warning(Format, Args)).
+-define(LOG_ERROR(Format, Args), couch_log:error(Format, Args)).
 
 % Tree::term() is really a tree(), but we don't want to require R13B04 yet
 -type branch() :: {Key::term(), Value::term(), Tree::term()}.

http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b1305243/src/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couch_file.erl b/src/couch_file.erl
index f7b10d0..a5bcbd1 100644
--- a/src/couch_file.erl
+++ b/src/couch_file.erl
@@ -167,7 +167,7 @@ pread_iolist(Fd, Pos) ->
         Md5 ->
             {ok, IoList};
         _ ->
-            couch_log:log(emerg, "File corruption in ~p at position ~B",
+            couch_log:emergency("File corruption in ~p at position ~B",
                      [Fd, Pos]),
             exit({file_corruption, <<"file corruption">>})
         end;

http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b1305243/src/couch_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd.erl b/src/couch_httpd.erl
index 45dd524..7028d70 100644
--- a/src/couch_httpd.erl
+++ b/src/couch_httpd.erl
@@ -586,7 +586,7 @@ log_request(#httpd{mochi_req=MochiReq,peer=Peer}, Code) ->
         true ->
             ok;
         _ ->
-            couch_log:log(notice, "~s - - ~s ~s ~B", [
+            couch_log:notice("~s - - ~s ~s ~B", [
                 Peer,
                 MochiReq:get(method),
                 MochiReq:get(raw_path),

http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b1305243/src/couch_sup.erl
----------------------------------------------------------------------
diff --git a/src/couch_sup.erl b/src/couch_sup.erl
index c716620..80cef4b 100644
--- a/src/couch_sup.erl
+++ b/src/couch_sup.erl
@@ -43,7 +43,7 @@ start_link() ->
 
 
 init(_Args) ->
-    couch_log:log(info, "Starting ~s", [?MODULE]),
+    couch_log:info("Starting ~s", [?MODULE]),
     {ok, {{one_for_one,10, 60}, [
         {
             couch_primary_services,