fix: remove redundant 4-hour temperature fallback log to reduce noise

This commit is contained in:
sky121113 2026-05-16 16:49:38 +08:00
parent 450e6dbe67
commit 88dde0dd25

View File

@ -99,10 +99,6 @@ class ProcessHeartbeat implements ShouldQueue
Log::debug("ProcessHeartbeat: Temperature changed from {$lastValue} to {$temp}. Triggering log."); Log::debug("ProcessHeartbeat: Temperature changed from {$lastValue} to {$temp}. Triggering log.");
$shouldLog = true; $shouldLog = true;
} }
// 條件 B: 距離上次日誌超過 4 小時 (保底機制)
if ($lastAt->diffInHours(now()) >= 4) {
$shouldLog = true;
}
} }
if ($shouldLog) { if ($shouldLog) {