From ddc7347afe2b4a9ae5ebe0f40747ce81aa1e951b Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Tue, 27 Aug 2013 21:23:11 -0700 Subject: [PATCH] change "unnamed" middleware to -, less junk output --- lib/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/application.js b/lib/application.js index 373f884..232d9db 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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; };