Changes made to glances
This commit is contained in:
@@ -169,6 +169,7 @@
|
|||||||
|
|
||||||
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
console.log(`[StatusMonitor] ${mon.label} raw:`, JSON.stringify(data).slice(0, 500));
|
||||||
const result = this.parsers[mon.parseType](data);
|
const result = this.parsers[mon.parseType](data);
|
||||||
dot.className = 'status-dot ok';
|
dot.className = 'status-dot ok';
|
||||||
value.textContent = result;
|
value.textContent = result;
|
||||||
|
|||||||
Reference in New Issue
Block a user