couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [36/44] couch-replicator commit: updated refs/heads/63012-defensive to 1afa5ea
Date Tue, 07 Jun 2016 11:05:40 GMT
remove misleading log noise


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

Branch: refs/heads/63012-defensive
Commit: f76d5cfc5de937de749ce982dc4c999de8e3632e
Parents: 5dd0cb7
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Jun 3 17:10:43 2016 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Jun 3 17:10:43 2016 +0100

----------------------------------------------------------------------
 src/couch_replicator_doc_processor.erl | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/f76d5cfc/src/couch_replicator_doc_processor.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_doc_processor.erl b/src/couch_replicator_doc_processor.erl
index 0546da9..0ae203c 100644
--- a/src/couch_replicator_doc_processor.erl
+++ b/src/couch_replicator_doc_processor.erl
@@ -61,7 +61,6 @@ process_update(DbName, {Change}) ->
     {unstable, false} ->
 	couch_log:notice("Not starting '~s' as cluster is unstable", [DocId]);
     {ThisNode, false} when ThisNode =:= node() ->
-        couch_log:notice("Maybe starting '~s' as I'm the owner", [DocId]),
         case get_json_value(<<"_replication_state">>, RepProps) of
         undefined ->
             maybe_start_replication(DbName, DocId, JsonRepDoc);
@@ -81,7 +80,7 @@ process_update(DbName, {Change}) ->
             couch_log:warning(Msg, [DocId, Reason])
         end;
     {Owner, false} ->
-        couch_log:notice("Not starting '~s' as owner is ~s.", [DocId, Owner])
+        ok
     end,
     ok.
 
@@ -93,8 +92,6 @@ maybe_start_replication(DbName, DocId, RepDoc) ->
     Rep = Rep0#rep{db_name = DbName},
     case couch_replicator:rep_state(RepId) of
     nil ->
-        couch_log:notice("Attempting to start replication `~s` (document `~s`).",
-            [pp_rep_id(RepId), DocId]),
         case couch_replicator_scheduler:add_job(Rep) of
         ok ->
             ok;
@@ -136,11 +133,9 @@ maybe_tag_rep_doc(DbName, DocId, {RepProps}, RepId) ->
 
 -spec remove_jobs(binary(), binary()) -> ok.
 remove_jobs(DbName, DocId) ->
-    LogMsg = "Stopped replication `~s` , replication document `~s`",
     [
         begin
-            couch_replicator_scheduler:remove_job(RepId),
-            couch_log:notice(LogMsg, [pp_rep_id(RepId), DocId])
+            couch_replicator_scheduler:remove_job(RepId)
         end || RepId <- find_jobs_by_doc(DbName, DocId)
     ],
     ok.


Mime
View raw message