fix: prevent raw check errors from entering public incident history

pull/238/head
wongJG 2026-11-22 14:36:23 +01:00
parent 8035521268
commit fcd7086d90
1 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,9 @@ export async function doMonitor(monitor: MonitorTarget, defaultLocation: string,
console.log(`[${monitor.id}] Check result from ${checkLocation}: up=${status.up}, ping=${status.ping}, err=${status.err}`)
// Incident errors are public. Keep raw diagnostics in logs, not in stored state.
status.err = status.up ? '' : 'Monitor check failed'
return {
location: checkLocation,
status,