Skip to content

Commit

Permalink
improve: do not log OPTIONS requests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jun 3, 2015
1 parent 54ad1c5 commit 4029557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var logFormat = '[:date[clf]] :user (:remote-addr) :method :url :status :respons

var logger = morgan(logFormat, {
skip: function (req, res) {
return req.method === 'GET';
return req.method === 'GET' || req.method === 'OPTIONS';
},
stream: accessLogStream
});
Expand Down

0 comments on commit 4029557

Please sign in to comment.