X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;h=bbb75ce1839dc79c947d1977483654cd6856285b;hp=da86761d82b4905abe3da3c6cafbd7800567d89b;hb=e03ba0bc17312d19afba035295d9b10049b10cb7;hpb=9ce3e2a4e56f91fdc7d6295d3d064f2739955404 diff --git a/proxy.js b/proxy.js index da86761..bbb75ce 100644 --- a/proxy.js +++ b/proxy.js @@ -4,6 +4,7 @@ var router = require("./lib/router.js"); var cache = require("./lib/cache.js"); var maintain = require("./lib/maintain.js"); var log = require("./lib/log.js"); +var debug = require("./lib/debug.js"); // first we load the config... @@ -14,5 +15,8 @@ config.loadConfig("./repos.conf"); log.info("Starting cache maintenance timer"); maintain.startTimer(); +// start the debug timer, if we should +debug.startDebugTimer(); + // next we start our main request loop http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);