summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoro5pxels <o5pxels@gmail.com>2021-04-11 07:43:10 -0500
committero5pxels <o5pxels@gmail.com>2021-04-11 07:43:10 -0500
commit1b645f8a50a35e7f4e532380d17a5d0a9a8a95fa (patch)
treeecc29549a0e9207930d29c0bb1ba4679e7b23709 /src
parent03969b6aa180596c0382431f1a5a2e2b46b099a8 (diff)
downloadStreamFinder-1b645f8a50a35e7f4e532380d17a5d0a9a8a95fa.tar.xz
StreamFinder-1b645f8a50a35e7f4e532380d17a5d0a9a8a95fa.zip
add logs in performCheck
Diffstat (limited to 'src')
-rw-r--r--src/check.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check.js b/src/check.js
index 0b52ece..2410e89 100644
--- a/src/check.js
+++ b/src/check.js
@@ -26,9 +26,11 @@ exports.performCheck = async function performCheck(id, query, type) {
break;
}
if (result == null) {
+ console.log('no db entry found')
await scraper.performSearch(id, query, type)
}
// (if it needed to be scraped, it now is, and its stored. next, we perform the database search for the newly saved entry)
+ console.log('start db search')
var array = await performDatabaseSearch(id, type); // returns values
await client.close();
return array;
@@ -54,5 +56,6 @@ async function performDatabaseSearch(id, type) {
break;
}
client.close()
+ console.log('db search finished')
return [result.service, result.price]
} \ No newline at end of file