Skip to content

Commit

Permalink
warn on master assign
Browse files Browse the repository at this point in the history
  • Loading branch information
nomilous committed Nov 7, 2016
1 parent 42a7b33 commit 704b4a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ class Cluster {

this._masterName = join1.name;
this.name = join1.cluster;
this.log.info('joining %s/%s', this.name, this._masterName);
this.log.info('joining cluster %s', this.name);
this.log.info('assigned master %s', this._masterName);

if (join1.self) {
// join1 was to master already
Expand Down Expand Up @@ -656,7 +657,7 @@ class Cluster {
let member = this.members[name];
if (!member) return this.log.error('new master %s does not member', name);

this.log.info('assigned master', name);
this.log.warn('assigned master', name);
this._masterName = name;
let resolve;
while (resolve = this._waitingMaster.shift()) {
Expand Down

0 comments on commit 704b4a2

Please sign in to comment.