Skip to content

Commit 358eadc

Browse files
committed
feat(client): respect infrastructureLogging.level at Browser side
1 parent cee170c commit 358eadc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Server.js

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

554-
if (this.options.client.logging) {
555-
this.sockWrite([connection], 'logging', this.options.client.logging);
554+
const clientLogLevel =
555+
this.options.client.logging ||
556+
this.compiler.options.infrastructureLogging.level;
557+
558+
if (clientLogLevel) {
559+
this.sockWrite([connection], 'logging', clientLogLevel);
556560
}
557561

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

0 commit comments

Comments
 (0)