diff --git a/lib/middleware.js b/lib/middleware.js
index <HASH>..<HASH> 100644
--- a/lib/middleware.js
+++ b/lib/middleware.js
@@ -29,13 +29,14 @@ module.exports = uglifyjs.middleware = function (options) {
     console[type]('%s'.cyan + ': ' + '%s'.green, key, val);
   };
 
-  return function (req, res, next) {
+  return function uglifyjsMiddleware (req, res, next) {
     // Only handle GET and HEAD requests
     if (req.method.toUpperCase() !== "GET" && req.method.toUpperCase() !== "HEAD") {
       return next();
     }
 
     var filename = url.parse(req.url).pathname;
+    log('source', filename);
 
     return next();
   };
Named the returning function and logging the source filename