From 1b645f8a50a35e7f4e532380d17a5d0a9a8a95fa Mon Sep 17 00:00:00 2001 From: o5pxels Date: Sun, 11 Apr 2021 07:43:10 -0500 Subject: add logs in performCheck --- src/check.js | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3