Add debug logging to HeartbeatPopup in UptimeStatusIsland for production insights

- Introduced console logs to track incoming data and formatted time outputs.
- Aimed at enhancing visibility into the component's behavior during runtime.
This commit is contained in:
2025-07-07 20:16:29 +02:00
parent d046a6f4fd
commit 1d609b303f

View File

@@ -121,9 +121,14 @@ function formatLocalTime(rawTime, zone = 'utc') {
}
function HeartbeatPopup({ hb, userZone, monitor }) {
// Debug logging to see what data we're receiving
console.log('HeartbeatPopup PROD DEBUG:', { hb, userZone, hasTime: !!hb?.time });
const localTime = hb ? formatLocalTime(hb.time, userZone) : '';
const utcTime = hb ? formatLocalTime(hb.time, 'utc') : '';
console.log('HeartbeatPopup PROD DEBUG - Results:', { localTime, utcTime });
return (
<div style={{ minWidth: 220 }}>
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 4 }}>