mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-10-22 21:41:28 +00:00
Operator on prod reports the per-message naive-timestamp warning drowns the log when an observer's local clock isn't UTC. Since observer.last_seen already uses ingest time regardless of envelope (#1466), and per-packet rxTime is already clamped (#1464), the per-message console log adds nothing actionable. This PR silences the log. #1478 tracks the proper followup: surface broken observers in the UI (chip + banner on observer detail). Backend-only, hot-deployable via image pull (no API/schema change). Co-authored-by: openclaw-bot <bot@openclaw.local>
This commit is contained in:
1 parent
196f1c6720
commit
0a58aa146a
1 file changed
+4
-1
@@ -1147,7 +1147,10 @@ func resolveRxTime(msg map[string]interface{}, tag string) string {
|
||||
delta = -delta
|
||||
}
|
||||
if delta > naiveTolerance {
|
||||
log.Printf("MQTT [%s] naive timestamp %q off by %s, using ingest time", tag, raw, delta.Round(time.Second))
|
||||
// #1478: log silenced — was firing per-message + drowning logs.
|
||||
// observer.last_seen uses ingest time regardless (#1466), and
|
||||
// the bad observer should be surfaced in the UI (see #1478)
|
||||
// rather than per-message console noise.
|
||||
return now.Format(time.RFC3339)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user