mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
qlog: use version_mismatch trigger on transport:connection_closed event (#3724)
This commit is contained in:
parent
6d7280b7dc
commit
11f493381f
2 changed files with 3 additions and 5 deletions
|
@ -148,8 +148,7 @@ func (e eventConnectionClosed) MarshalJSONObject(enc *gojay.Encoder) {
|
|||
enc.StringKey("connection_code", transportError(transportErr.ErrorCode).String())
|
||||
enc.StringKey("reason", transportErr.ErrorMessage)
|
||||
case errors.As(e.e, &versionNegotiationErr):
|
||||
enc.StringKey("owner", ownerRemote.String())
|
||||
enc.StringKey("trigger", "version_negotiation")
|
||||
enc.StringKey("trigger", "version_mismatch")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -245,9 +245,8 @@ var _ = Describe("Tracing", func() {
|
|||
Expect(entry.Time).To(BeTemporally("~", time.Now(), scaleDuration(10*time.Millisecond)))
|
||||
Expect(entry.Name).To(Equal("transport:connection_closed"))
|
||||
ev := entry.Event
|
||||
Expect(ev).To(HaveLen(2))
|
||||
Expect(ev).To(HaveKeyWithValue("owner", "remote"))
|
||||
Expect(ev).To(HaveKeyWithValue("trigger", "version_negotiation"))
|
||||
Expect(ev).To(HaveLen(1))
|
||||
Expect(ev).To(HaveKeyWithValue("trigger", "version_mismatch"))
|
||||
})
|
||||
|
||||
It("records application errors", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue