fix(ingestor): silence per-message naive-timestamp log (#1478 followup) (#1479)

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:
Kpa-clawbotandopenclaw-bot authored and GitHub committed 2026-05-29 06:27:58 +00:00
1 parent 196f1c6720
commit 0a58aa146a
1 file changed
+4 -1
+4 -1
View File
@@ -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)
}
}