From 0f94a15159f7338ae7adc36352138bfd6a9b601b Mon Sep 17 00:00:00 2001 From: pan261 Date: Tue, 16 Nov 2021 20:21:16 -0500 Subject: [PATCH] logging fix --- watcher.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/watcher.js b/watcher.js index d0bbd75..9233f7b 100644 --- a/watcher.js +++ b/watcher.js @@ -32,21 +32,22 @@ exports.watch = (projectID, folderID, credentials, interval) => { }) .then(data => { if (data === undefined) { // no new files changed, return + console.log("no new files modified since " + dateXSecondsAgo.toISOString()); return; } for (var index in data) { // console.log(data[index]); + var displayName = data[index].attributes.displayName; var lastModifiedTime = data[index].attributes.lastModifiedTime; - console.log(lastModifiedTime); + console.log(displayName + " was modified at " + lastModifiedTime); // TODO: if item is not in db, add to db and then download // TODO: if item is in db, check and compare lastModifiedTime - } }) .catch(err => { - console.error(err); + console.log(err); }); } \ No newline at end of file