mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 17:22:58 +01:00
✏️Add more debug when uploading/downloading to/from Nextcloud
This commit is contained in:
parent
eed5fe0eb8
commit
3941262e8c
@ -216,6 +216,7 @@ class WebdavTools {
|
|||||||
if (conf.ssl === "true") {
|
if (conf.ssl === "true") {
|
||||||
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
||||||
}
|
}
|
||||||
|
logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`);
|
||||||
|
|
||||||
got.stream
|
got.stream
|
||||||
.put(this.baseUrl + encodeURI(path), options)
|
.put(this.baseUrl + encodeURI(path), options)
|
||||||
@ -309,7 +310,7 @@ class WebdavTools {
|
|||||||
if (conf.ssl === "true") {
|
if (conf.ssl === "true") {
|
||||||
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
||||||
}
|
}
|
||||||
|
logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`)
|
||||||
pipeline(
|
pipeline(
|
||||||
got.stream.get(this.baseUrl + encodeURI(path), options).on("downloadProgress", (e) => {
|
got.stream.get(this.baseUrl + encodeURI(path), options).on("downloadProgress", (e) => {
|
||||||
let percent = Math.round(e.percent * 100) / 100;
|
let percent = Math.round(e.percent * 100) / 100;
|
||||||
|
Loading…
Reference in New Issue
Block a user