From 37e608517ea1e4db8bef82abb3f799809e992947 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 4 Dec 2015 08:46:11 +0000 Subject: [PATCH] fix some debugs --- lib/oauth3-auth.js | 4 +--- lib/package-server.js | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/oauth3-auth.js b/lib/oauth3-auth.js index ac5f933..b241d82 100644 --- a/lib/oauth3-auth.js +++ b/lib/oauth3-auth.js @@ -97,12 +97,10 @@ module.exports.inject = function (app) { }); } - /* app.use('/', function (req, res, next) { - console.log('[DEBUG CORS]', req.method, req.hostname, req.url); + //console.log('[DEBUG CORS]', req.method, req.hostname, req.url); cors(req, res, next); }); - */ app.use('/', getToken); }; diff --git a/lib/package-server.js b/lib/package-server.js index 33f851a..9af69a6 100644 --- a/lib/package-server.js +++ b/lib/package-server.js @@ -158,12 +158,13 @@ function getApi(pkgConf, pkgDeps, packagedApi) { require('./oauth3-auth').inject(packagedApi._api, pkgConf, pkgDeps); // DEBUG + // /* packagedApi._api.use('/', function (req, res, next) { - console.log('[DEBUG pkgsrv]', req.method, req.hostname, req.url); + console.log('[DEBUG pkgApiApp]', req.method, req.hostname, req.url); next(); }); - */ + //*/ // TODO fix backwards compat