Skip to content

Commit 575abca

Browse files
committed
feat(client): respect infrastructureLogging.level on Browser side as well
1 parent cee170c commit 575abca

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/Server.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,16 @@ class Server {
551551
}
552552
});
553553

554-
if (this.options.client.logging) {
555-
this.sockWrite([connection], 'logging', this.options.client.logging);
554+
console.log('zzzzz');
555+
console.log(this.compiler.options.infrastructureLogging.level);
556+
557+
const clientLogLevel =
558+
this.options.client.logging ||
559+
(this.compiler.options.infrastructureLogging &&
560+
this.compiler.options.infrastructureLogging.level);
561+
562+
if (clientLogLevel) {
563+
this.sockWrite([connection], 'logging', clientLogLevel);
556564
}
557565

558566
if (this.options.hot === true || this.options.hot === 'only') {

0 commit comments

Comments
 (0)