Skip to content

Commit e8a0353

Browse files
gaearonSpaceK33z
authored andcommitted
Emit 'log-level' event before 'hot' event (#607)
1 parent bd976f2 commit e8a0353

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,11 @@ Server.prototype.listen = function() {
363363
}
364364
}.bind(this));
365365

366-
if(this.hot) this.sockWrite([conn], "hot");
367-
368366
if(this.clientLogLevel)
369367
this.sockWrite([conn], "log-level", this.clientLogLevel);
368+
369+
if(this.hot) this.sockWrite([conn], "hot");
370+
370371
if(!this._stats) return;
371372
this._sendStats([conn], this._stats.toJson(), true);
372373
}.bind(this));

0 commit comments

Comments
 (0)