(minor) change Bytes with Hex call in logger

This commit is contained in:
Lawrence, Rendall
2022-11-18 16:05:03 +03:00
parent 935c225cc5
commit db671d3891
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ func (g *ConnectionIDGenerator) Generate(ip netip.Addr, now time.Time) []byte {
log.Debug().
Stringer("ip", ip).
Time("now", now).
Bytes("connID", g.connID).
Hex("connID", g.connID).
Msg("generated connection ID")
return g.connID
}
@@ -95,7 +95,7 @@ func (g *ConnectionIDGenerator) Validate(connectionID []byte, ip netip.Addr, now
log.Debug().
Stringer("ip", ip).
Time("ts", ts).Time("now", now).
Bytes("connID", g.connID).
Hex("connID", g.connID).
Msg("validating connection ID")
if now.After(ts.Add(ttl)) || ts.After(now.Add(maxClockSkew)) {
return false
+1 -1
View File
@@ -60,7 +60,7 @@ func simpleNewConnectionID(ip netip.Addr, now time.Time, key string) []byte {
log.Debug().
Stringer("ip", ip).
Time("now", now).
Bytes("connID", buf).
Hex("connID", buf).
Msg("manually generated connection ID")
return buf
}