Update lib/middleware.js

Don't log static files.