couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch-replicator commit: updated refs/heads/master to a6fd293
Date Wed, 24 Sep 2014 20:46:52 GMT
Repository: couchdb-couch-replicator
Updated Branches:
  refs/heads/master 363093f48 -> a6fd29328


Use couch_log instead of ?LOG_*


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

Branch: refs/heads/master
Commit: a6fd29328fc442cdfd27764c67a174b264463cac
Parents: 363093f
Author: Alexander Shorin <kxepal@apache.org>
Authored: Wed Sep 24 19:25:02 2014 +0400
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Thu Sep 25 00:46:33 2014 +0400

----------------------------------------------------------------------
 src/couch_replicator_api_wrap.erl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/a6fd2932/src/couch_replicator_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_api_wrap.erl b/src/couch_replicator_api_wrap.erl
index 22a3b78..d739c8c 100644
--- a/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator_api_wrap.erl
@@ -208,7 +208,7 @@ open_doc_revs(#httpdb{retries = 0} = HttpDb, Id, Revs, Options, _Fun,
_Acc) ->
     Url = couch_util:url_strip_password(
         couch_replicator_httpc:full_url(HttpDb, [{path,Path}, {qs,QS}])
     ),
-    ?LOG_ERROR("Replication crashing because GET ~s failed", [Url]),
+    couch_log:error("Replication crashing because GET ~s failed", [Url]),
     exit(kaboom);
 open_doc_revs(#httpdb{} = HttpDb, Id, Revs, Options, Fun, Acc) ->
     Path = encode_doc_id(Id),
@@ -272,7 +272,8 @@ open_doc_revs(#httpdb{} = HttpDb, Id, Revs, Options, Fun, Acc) ->
                 true ->
                     throw(request_uri_too_long);
                 false ->
-                    ?LOG_INFO("Reducing url length to ~B because of 414 response", [NewMaxLen]),
+                    couch_log:info("Reducing url length to ~B because of"
+                                   " 414 response", [NewMaxLen]),
                     Options1 = lists:keystore(max_url_len, 1, Options,
                                               {max_url_len, NewMaxLen}),
                     open_doc_revs(HttpDb, Id, Revs, Options1, Fun, Acc)


Mime
View raw message