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:
@@ -121,9 +121,14 @@ function formatLocalTime(rawTime, zone = 'utc') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function HeartbeatPopup({ hb, userZone, monitor }) {
|
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 localTime = hb ? formatLocalTime(hb.time, userZone) : '';
|
||||||
const utcTime = hb ? formatLocalTime(hb.time, 'utc') : '';
|
const utcTime = hb ? formatLocalTime(hb.time, 'utc') : '';
|
||||||
|
|
||||||
|
console.log('HeartbeatPopup PROD DEBUG - Results:', { localTime, utcTime });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ minWidth: 220 }}>
|
<div style={{ minWidth: 220 }}>
|
||||||
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 4 }}>
|
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 4 }}>
|
||||||
|
Reference in New Issue
Block a user