Skip to content

Commit 3a91fe5

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

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
@@ -339,10 +339,11 @@ Server.prototype.listen = function() {
339339
}
340340
}.bind(this));
341341

342-
if(this.hot) this.sockWrite([conn], "hot");
343-
344342
if(this.clientLogLevel)
345343
this.sockWrite([conn], "log-level", this.clientLogLevel);
344+
345+
if(this.hot) this.sockWrite([conn], "hot");
346+
346347
if(!this._stats) return;
347348
this._sendStats([conn], this._stats.toJson(), true);
348349
}.bind(this));

0 commit comments

Comments
 (0)