From 200c949b7ba22e5316b245f52bcd6ccff2abe705 Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:12:31 +0100 Subject: [PATCH] log output --- lib/proxmox.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/proxmox.js b/lib/proxmox.js index ba344d4..91be555 100644 --- a/lib/proxmox.js +++ b/lib/proxmox.js @@ -18,14 +18,9 @@ class ProxmoxUtils { .filter((el) => el.length); this.currentIpId = 0; - this.setNextUrlMain(0); - - this.adapter.log.warn(`Using Proxmox API: ${this.URL}`); - this.responseCache = {}; this.sharedMap = {}; - this.stopped = false; } @@ -38,6 +33,9 @@ class ProxmoxUtils { } this.URL = `https://${this.ipList[this.currentIpId]}:${this.port}/api2/json`; + + this.adapter.log.warn(`Using Proxmox API: ${this.URL}`); + return this.URL; } @@ -258,7 +256,6 @@ class ProxmoxUtils { } const pathU = url || ''; - // this.adapter.log.error(`starting request to --> ${this.URL}${pathU} ...`); axios({ method,