couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [20/50] [abbrv] couch-replicator commit: updated refs/heads/1963-eunit-bigcouch to 3cf0b13
Date Thu, 28 Aug 2014 17:30:20 GMT
Change term formatting for error logs

HTTP errors were nearly unreadable using the `~p` format after a long
error message. This just uses `~w` so the term is printed on a single
line.


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/b80c7c04
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/b80c7c04
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/b80c7c04

Branch: refs/heads/1963-eunit-bigcouch
Commit: b80c7c043e6e2b43b9eedcef6a7845208261f1d1
Parents: 777da3d
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Wed Dec 11 10:51:43 2013 -0600
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Jul 29 15:21:03 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator_api_wrap.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/b80c7c04/src/couch_replicator_api_wrap.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_api_wrap.erl b/src/couch_replicator_api_wrap.erl
index fd8edc4..16f7893 100644
--- a/src/couch_replicator_api_wrap.erl
+++ b/src/couch_replicator_api_wrap.erl
@@ -264,7 +264,7 @@ open_doc_revs(#httpdb{} = HttpDb, Id, Revs, Options, Fun, Acc) ->
             ),
             #httpdb{retries = Retries, wait = Wait0} = HttpDb,
             Wait = 2 * erlang:min(Wait0 * 2, ?MAX_WAIT),
-            ?LOG_INFO("Retrying GET to ~s in ~p seconds due to error ~p",
+            couch_log:notice("Retrying GET to ~s in ~p seconds due to error ~w",
                 [Url, Wait / 1000, error_reason(Else)]
             ),
             ok = timer:sleep(Wait),


Mime
View raw message