Skip to content

Commit

Permalink
added debug() for .use()
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 2, 2012
1 parent f32f9f7 commit 405dac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/proto.js
Expand Up @@ -87,7 +87,7 @@ app.use = function(route, fn){
}

// add the middleware
debug('use %s %s', route, fn.name || 'anonymous');
debug('use %s %s', route || '/', fn.name || 'anonymous');
this.stack.push({ route: route, handle: fn });

return this;
Expand Down

0 comments on commit 405dac1

Please sign in to comment.