change "unnamed" middleware to -, less junk output

This commit is contained in:
TJ Holowaychuk 2013-08-27 21:23:11 -07:00
parent 52a60b715d
commit ddc7347afe

View file

@ -3,7 +3,7 @@
* Module dependencies.
*/
var debug = require('debug')('koa:app');
var debug = require('debug')('koa:application');
var Emitter = require('events').EventEmitter;
var compose = require('koa-compose');
var context = require('./context');
@ -73,7 +73,7 @@ app.listen = function(){
*/
app.use = function(fn){
debug('use %s', fn.name || 'unnamed');
debug('use %s', fn.name || '-');
this.middleware.push(fn);
return this;
};