Skip to content

Commit

Permalink
Disable favicon logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kchung committed Apr 1, 2018
1 parent 1305ac6 commit 161ee99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 161ee99

Please sign in to comment.