From 1305ac6a351b46a5e0bdf351a3341effca98d71c Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 31 Mar 2018 20:48:51 -0700 Subject: [PATCH 1/2] Disable favicon request errors --- lib/serve.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index 878525b6..6a8d2f25 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -66,6 +66,9 @@ exports.listen = function(port) { app.use(bodyParser.text({type: "*/*"})); app.use(expressLogging(console)); + app.get("/favicon.ico", function(req, res) { + res.status(204).end(); + }); app.all("*", createHandler(dir)); app.listen(port, function(err) { From 161ee997bc7d797faa3185548924215fbcbedb1c Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 31 Mar 2018 20:49:07 -0700 Subject: [PATCH 2/2] Disable favicon logging --- lib/serve.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index 6a8d2f25..e9a774a6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -64,7 +64,9 @@ exports.listen = function(port) { var dir = config.build.functions || config.build.Functions; app.use(bodyParser.raw()); app.use(bodyParser.text({type: "*/*"})); - app.use(expressLogging(console)); + app.use(expressLogging(console, { + blacklist: ['/favicon.ico'], + })); app.get("/favicon.ico", function(req, res) { res.status(204).end();