Forráskód Böngészése

debug log for cloudflare/etag

jomo 10 éve
szülő
commit
452bb14605
1 módosított fájl, 3 hozzáadás és 2 törlés
  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) {
         } else if (err) {
           http_status = 503;
           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);
         sendimage(http_status, status, image);
       } else {
       } else {
         handle_default(404, status);
         handle_default(404, status);