X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=proxy.js;h=bbb75ce1839dc79c947d1977483654cd6856285b;hp=dabbdec80ea5f0e39d38b8bb2fa515188c5c531e;hb=e03ba0bc17312d19afba035295d9b10049b10cb7;hpb=04f3190a0bcc430af31917456a957ecc80eb160b diff --git a/proxy.js b/proxy.js index dabbdec..bbb75ce 100644 --- a/proxy.js +++ b/proxy.js @@ -3,15 +3,20 @@ var config = require("./lib/config.js"); 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... -console.log("Loading configuration"); +log.info("Loading configuration"); config.loadConfig("./repos.conf"); - -console.log("Starting cache maintenance timer"); +// start the maintenance timer +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);