From 8ed231bfc78703d2fc40db2f6c512c7b19c69f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Coquillard?= Date: Sat, 23 May 2026 07:57:12 +0000 Subject: [PATCH] ajout debug gatus --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1d99938..32c1e2a 100644 --- a/index.html +++ b/index.html @@ -406,12 +406,15 @@ async function fetchGatusStatuses() { const res = await fetch(GATUS_URL); if (!res.ok) return {}; const data = await res.json(); + console.log('Gatus data:', JSON.stringify(data[0])); // Ajoute cette ligne const map = {}; - (data.results || []).forEach(ep => { + data.forEach(ep => { map[ep.key] = ep.results; }); + console.log('Status map keys:', Object.keys(map)); // Et celle-là return map; - } catch { + } catch (e) { + console.error('Gatus fetch error:', e); return {}; } }