change "unnamed" middleware to -, less junk output
This commit is contained in:
parent
52a60b715d
commit
ddc7347afe
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var debug = require('debug')('koa:app');
|
var debug = require('debug')('koa:application');
|
||||||
var Emitter = require('events').EventEmitter;
|
var Emitter = require('events').EventEmitter;
|
||||||
var compose = require('koa-compose');
|
var compose = require('koa-compose');
|
||||||
var context = require('./context');
|
var context = require('./context');
|
||||||
|
@ -73,7 +73,7 @@ app.listen = function(){
|
||||||
*/
|
*/
|
||||||
|
|
||||||
app.use = function(fn){
|
app.use = function(fn){
|
||||||
debug('use %s', fn.name || 'unnamed');
|
debug('use %s', fn.name || '-');
|
||||||
this.middleware.push(fn);
|
this.middleware.push(fn);
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue