We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6bce44 commit 3ac1636Copy full SHA for 3ac1636
1 file changed
serve-proxy.js
@@ -329,8 +329,11 @@ const server = http.createServer((req, res) => {
329
}
330
331
if (!config.silent) {
332
- const clientIp = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
333
- console.log(`[${new Date().toISOString()}] ${req.method} ${req.url}${config.logIp ? ` (${clientIp})` : ''}`);
+ // Skip logging PWA asset requests to reduce noise. chrome somehoe sends this every second to dev server.
+ if (!parsedUrl.pathname.includes('/assets/pwa/')) {
334
+ const clientIp = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
335
+ console.log(`[${new Date().toISOString()}] ${req.method} ${req.url}${config.logIp ? ` (${clientIp})` : ''}`);
336
+ }
337
338
339
// Handle directory requests without trailing slash
0 commit comments