Message format nit for logging retries. [ci skip]

This commit is contained in:
John-David Dalton
2014-05-04 13:10:50 -07:00
parent 8d145d7a32
commit a23ccd863d

View File

@@ -508,7 +508,7 @@ Job.prototype.restart = function(callback) {
label = options.name + ':';
logInline();
console.log(label + ' ' + description + ' restart #%d of %d', ++this.attempts, this.retries);
console.log(label + ' ' + description + ' restart %d of %d', ++this.attempts, this.retries);
_.defer(_.bind(this.emit, this, 'restart'));
this.stop(_.partial(this.start, callback));
@@ -674,7 +674,7 @@ util.inherits(Tunnel, EventEmitter);
*/
Tunnel.prototype.restart = function(callback) {
logInline();
console.log('Tunnel ' + this.id + ': restart #%d of %d', ++this.attempts, this.retries);
console.log('Tunnel ' + this.id + ': restart %d of %d', ++this.attempts, this.retries);
_.defer(_.bind(this.emit, this, 'restart'));
this.stop(_.partial(this.start, callback));