Skip to content

Commit

Permalink
Squash logData
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Oct 6, 2015
1 parent ddcb13f commit 7ed67e9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/membership/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,11 @@ Membership.prototype._updateMember = function _updateMember(update, isLocal) {
var updates = this.update(update, isLocal);

if (updates.length > 0) {
var logData = {};
logData.local = this.ringpop.whoami();
logData[update.status] = update.address;
logData.updateId = update.id;
this.ringpop.logger.debug('ringpop member declares other member ' +
update.status, logData);
update.status, {
local: this.ringpop.whoami(),
update: updates[0]
});
}

return updates;
Expand Down

0 comments on commit 7ed67e9

Please sign in to comment.