added a logger, started working on the maintenance timer routines
[nodejs-repoproxy.git] / proxy.js
index 65cf726..61aa8f2 100644 (file)
--- a/proxy.js
+++ b/proxy.js
@@ -2,15 +2,16 @@ var http = require("http");
 var config = require("./lib/config.js");
 var router = require("./lib/router.js");
 var cache = require("./lib/cache.js");
+var maintain = require("./lib/maintain.js");
 
 
 // first we load the config...
 console.log("Loading configuration");
 config.loadConfig("./repos.conf");
 
-
+// start the maintenance timer
 console.log("Starting cache maintenance timer");
-cache.startTimer();
+maintain.startTimer();
 
 // next we start our main request loop
 http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);