feat(client): add timestamp to ClientEvent::Warning

Include a timestamp when reporting warnings to allow consumers like the machine-readable formatter to provide temporal context for troubleshooting.
This commit is contained in:
Nils Andreas Svee committed 2026-05-11 09:50:16 +07:00
1 parent 1a04f44bb5
commit 5f6bff5dcb
5 files changed
+13 -4

No files matched your search

@@ -1678,7 +1678,7 @@ fn receive_metadata_does_not_broaden_malformed_warning() {
assert_eq!(events.len(), 1);
match &events[0] {
ClientEvent::Warning { kind, message } => {
ClientEvent::Warning { kind, message, .. } => {
assert_eq!(*kind, WarningKind::MalformedOrUnrelatedPacket);
assert_eq!(message, "dropped malformed or unrelated packet");
}