From 9ca9083c45474f4ce923881b59de39bec7dbd2b6 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 11 Jul 2023 18:16:51 +0200 Subject: [PATCH] added: logs in node app --- tools/nodeclient/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/nodeclient/app.js b/tools/nodeclient/app.js index e301632..1c16854 100644 --- a/tools/nodeclient/app.js +++ b/tools/nodeclient/app.js @@ -52,6 +52,7 @@ axios.post(`${settings.url}/handler.php`, notes.splice(notes.indexOf(note), 1); notes.unshift(note); + console.log("sending data file to server..."); axios.post(`${settings.url}/handler.php`, { action: "push", @@ -63,8 +64,14 @@ axios.post(`${settings.url}/handler.php`, { "Content-type": "application/x-www-form-urlencoded" } + }).then(res => { + console.log("done."); }); } + else + { + console.log("no change."); + } }) rl.close(); });