[RELEASE] Production Update: Optimized temperature logging behavior
1. fix: 移除冗餘的 4 小時溫度保底日誌,大幅減少生產環境日誌噪音。
This commit is contained in:
commit
7b80400a09
@ -99,10 +99,6 @@ class ProcessHeartbeat implements ShouldQueue
|
||||
Log::debug("ProcessHeartbeat: Temperature changed from {$lastValue} to {$temp}. Triggering log.");
|
||||
$shouldLog = true;
|
||||
}
|
||||
// 條件 B: 距離上次日誌超過 4 小時 (保底機制)
|
||||
if ($lastAt->diffInHours(now()) >= 4) {
|
||||
$shouldLog = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($shouldLog) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user