Explorar el Código

debug log for cloudflare/etag

jomo hace 11 años
padre
commit
452bb14605
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      routes/avatars.js

+ 3 - 2
routes/avatars.js

@@ -91,8 +91,9 @@ router.get('/avatars/:uuid.:ext?', function(req, res) {
         } else if (err) {
           http_status = 503;
         }
-        console.log("matches: " + matches);
-        console.log("status: " + http_status);
+        logging.log("matches: " + matches);
+        logging.log("Etag: " + req.get("If-None-Match"));
+        logging.log("status: " + http_status);
         sendimage(http_status, status, image);
       } else {
         handle_default(404, status);