Skip to content

Commit db21ad8

Browse files
committed
Add option to disable default request logging in fastbootExpressMiddleware
1 parent 0f1dc96 commit db21ad8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/fastboot-app-server/src/fastboot-app-server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class FastBootAppServer {
2525
this.afterMiddleware = options.afterMiddleware;
2626
this.buildSandboxGlobals = options.buildSandboxGlobals;
2727
this.chunkedResponse = options.chunkedResponse;
28+
this.log = options.log;
2829

2930
if (!this.ui) {
3031
let UI = require('./ui');

packages/fastboot-app-server/src/worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Worker {
1919
this.afterMiddleware = options.afterMiddleware;
2020
this.buildSandboxGlobals = options.buildSandboxGlobals;
2121
this.chunkedResponse = options.chunkedResponse;
22+
this.log = options.log;
2223

2324
if (!this.httpServer) {
2425
this.httpServer = new ExpressHTTPServer({
@@ -80,6 +81,7 @@ class Worker {
8081
return fastbootMiddleware({
8182
fastboot: this.fastboot,
8283
chunkedResponse: this.chunkedResponse,
84+
log: this.log,
8385
});
8486
}
8587

0 commit comments

Comments
 (0)