From 3941262e8c55ae5899769456353100725f3928b2 Mon Sep 17 00:00:00 2001 From: SebClem Date: Tue, 17 Nov 2020 15:28:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8FAdd=20more=20debug=20when=20u?= =?UTF-8?q?ploading/downloading=20to/from=20Nextcloud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rootfs/opt/nextcloud_backup/tools/webdavTools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js index 7475666..050888a 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js @@ -216,6 +216,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`); got.stream .put(this.baseUrl + encodeURI(path), options) @@ -309,7 +310,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } - + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`) pipeline( got.stream.get(this.baseUrl + encodeURI(path), options).on("downloadProgress", (e) => { let percent = Math.round(e.percent * 100) / 100;