You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/08/28 19:30:20 UTC

[20/50] [abbrv] couch-replicator commit: updated refs/heads/1963-eunit-bigcouch to 3cf0b13

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 <pa...@gmail.com>
Authored: Wed Dec 11 10:51:43 2013 -0600
Committer: Robert Newson <rn...@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),