Explorar el Código

some logging fixes

jomo hace 10 años
padre
commit
9d2fe0c454
Se han modificado 5 ficheros con 5 adiciones y 6 borrados
  1. 1 2
      lib/routes/avatars.js
  2. 1 1
      lib/routes/capes.js
  3. 1 1
      lib/routes/renders.js
  4. 1 1
      lib/routes/skins.js
  5. 1 1
      lib/server.js

+ 1 - 2
lib/routes/avatars.js

@@ -77,8 +77,7 @@ module.exports = function(req, res) {
 
   // strip dashes
   userId = userId.replace(/-/g, "");
-  logging.log(rid, "userid:", userId);
-
+  logging.debug(rid, "userid:", userId);
 
   try {
     helpers.get_avatar(rid, userId, helm, size, function(err, status, image, hash) {

+ 1 - 1
lib/routes/capes.js

@@ -42,7 +42,7 @@ module.exports = function(req, res) {
 
   // strip dashes
   userId = userId.replace(/-/g, "");
-  logging.log(rid, "userid:", userId);
+  logging.debug(rid, "userid:", userId);
 
   try {
     helpers.get_cape(rid, userId, function(err, status, image, hash) {

+ 1 - 1
lib/routes/renders.js

@@ -105,7 +105,7 @@ module.exports = function(req, res) {
 
   // strip dashes
   userId = userId.replace(/-/g, "");
-  logging.log(rid, "userId:", userId);
+  logging.debug(rid, "userId:", userId);
 
   try {
     helpers.get_render(rid, userId, scale, helm, body, function(err, status, hash, image) {

+ 1 - 1
lib/routes/skins.js

@@ -62,7 +62,7 @@ module.exports = function(req, res) {
 
   // strip dashes
   userId = userId.replace(/-/g, "");
-  logging.log(rid, "userid:", userId);
+  logging.debug(rid, "userid:", userId);
 
   try {
     helpers.get_skin(rid, userId, function(err, hash, image) {

+ 1 - 1
lib/server.js

@@ -49,7 +49,7 @@ function requestHandler(req, res) {
   request.id = Math.random().toString(36).substring(2, 14);
 
   var local_path = request.url.path_list[1];
-  logging.log(request.id + request.method, request.url.href);
+  logging.log(request.id, request.method, request.url.href);
   if (request.method === "GET" || request.method === "HEAD") {
     try {
       switch (local_path) {