diff --git a/lib/cache.js b/lib/cache.js index 53b90e0..f681f4c 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -98,7 +98,7 @@ exp.info = function(callback) { // these 60 seconds match the duration of Mojang's rate limit ban // callback: error exp.update_timestamp = function(rid, userId, hash, temp, callback) { - logging.log(rid, "cache: updating timestamp"); + logging.debug(rid, "updating cache timestamp"); var sub = temp ? (config.local_cache_time - 60) : 0; var time = Date.now() - sub; // store userId in lower case if not null @@ -114,7 +114,7 @@ exp.update_timestamp = function(rid, userId, hash, temp, callback) { // this feature can be used to write both cape and skin at separate times // +callback+ contans error exp.save_hash = function(rid, userId, skin_hash, cape_hash, callback) { - logging.log(rid, "cache: saving skin:" + skin_hash + " cape:" + cape_hash); + logging.debug(rid, "caching skin:" + skin_hash + " cape:" + cape_hash); var time = Date.now(); // store shorter null byte instead of "null" skin_hash = (skin_hash === null ? "" : skin_hash); @@ -138,7 +138,7 @@ exp.save_hash = function(rid, userId, skin_hash, cape_hash, callback) { // removes the hash for +userId+ from the cache exp.remove_hash = function(rid, userId) { - logging.log(rid, "cache: deleting hash"); + logging.log(rid, "deleting hash from cache"); redis.del(userId.toLowerCase(), "h", "t"); }; diff --git a/lib/routes/avatars.js b/lib/routes/avatars.js index 259542d..afa627b 100644 --- a/lib/routes/avatars.js +++ b/lib/routes/avatars.js @@ -52,7 +52,6 @@ module.exports = function(req, callback) { // strip dashes userId = userId.replace(/-/g, ""); - logging.debug(req.id, "userid:", userId); try { helpers.get_avatar(req.id, userId, helm, size, function(err, status, image, hash) { diff --git a/lib/routes/renders.js b/lib/routes/renders.js index 3e9fcc2..7ab77cb 100644 --- a/lib/routes/renders.js +++ b/lib/routes/renders.js @@ -72,7 +72,6 @@ module.exports = function(req, callback) { // strip dashes userId = userId.replace(/-/g, ""); - logging.debug(rid, "userId:", userId); try { helpers.get_render(rid, userId, scale, helm, body, function(err, status, hash, image) { diff --git a/lib/routes/skins.js b/lib/routes/skins.js index 6666ecd..ffeeede 100644 --- a/lib/routes/skins.js +++ b/lib/routes/skins.js @@ -50,7 +50,6 @@ module.exports = function(req, callback) { // strip dashes userId = userId.replace(/-/g, ""); - logging.debug(rid, "userid:", userId); try { helpers.get_skin(rid, userId, function(err, hash, status, image) {