mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Message format nit for logging retries. [ci skip]
This commit is contained in:
@@ -508,7 +508,7 @@ Job.prototype.restart = function(callback) {
|
|||||||
label = options.name + ':';
|
label = options.name + ':';
|
||||||
|
|
||||||
logInline();
|
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'));
|
_.defer(_.bind(this.emit, this, 'restart'));
|
||||||
this.stop(_.partial(this.start, callback));
|
this.stop(_.partial(this.start, callback));
|
||||||
@@ -674,7 +674,7 @@ util.inherits(Tunnel, EventEmitter);
|
|||||||
*/
|
*/
|
||||||
Tunnel.prototype.restart = function(callback) {
|
Tunnel.prototype.restart = function(callback) {
|
||||||
logInline();
|
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'));
|
_.defer(_.bind(this.emit, this, 'restart'));
|
||||||
this.stop(_.partial(this.start, callback));
|
this.stop(_.partial(this.start, callback));
|
||||||
|
|||||||
Reference in New Issue
Block a user