From 8608b2746d1526c135fc03f96f9256011ea96ab1 Mon Sep 17 00:00:00 2001 From: NiceygyLive Date: Thu, 18 Jul 2024 19:20:10 +0100 Subject: [PATCH] logging changes --- .gitignore | 2 ++ src/worker.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b7db66d..099f2cf 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,5 @@ dist .yarn/install-state.gz .pnp.* .wrangler +db/ +db/* \ No newline at end of file diff --git a/src/worker.js b/src/worker.js index 1182112..a0ee522 100644 --- a/src/worker.js +++ b/src/worker.js @@ -26,7 +26,7 @@ async function recordDownload(url, env) { console.log('Found in KV'); var newCount = oldNum++; await KV.put(packName, newCount); - console.log(packName + ' now has ' + newCount + ' downloads'); + console.log(packName + ' now has ' + newCount + ' downloads (had ' + oldNum + ')'); } //Redirect the user to the download link