always qlog the generation of 1-RTT key updates

This commit is contained in:
Marten Seemann
2020-09-09 13:37:30 +07:00
parent bed802aee5
commit bccf857b5d
2 changed files with 17 additions and 1 deletions

View File

@@ -307,7 +307,9 @@ func (e eventKeyUpdated) IsNil() bool { return false }
func (e eventKeyUpdated) MarshalJSONObject(enc *gojay.Encoder) {
enc.StringKey("trigger", e.Trigger.String())
enc.StringKey("key_type", e.KeyType.String())
enc.Uint64KeyOmitEmpty("generation", uint64(e.Generation))
if e.KeyType == keyTypeClient1RTT || e.KeyType == keyTypeServer1RTT {
enc.Uint64Key("generation", uint64(e.Generation))
}
}
type eventKeyRetired struct {