Fix "address" typo in transport logs (addddress → address) (#4097)
Correct triple-d spelling of "address" field in transport logs. I’m not sure whether this was intentional, but I noticed it while creating Grafana queries and filters. This matters because anyone filtering logs using the correct spelling may unintentionally miss relevant data, leading to incomplete or misleading analysis.
This commit is contained in:
@@ -162,16 +162,16 @@ func (w wrappedICECandidatePairLogger) MarshalLogObject(e zapcore.ObjectEncoder)
|
||||
if w.pair.Local != nil {
|
||||
e.AddString("localProtocol", w.pair.Local.Protocol.String())
|
||||
e.AddString("localCandidateType", w.pair.Local.Typ.String())
|
||||
e.AddString("localAdddress", w.pair.Local.Address)
|
||||
e.AddString("localAddress", w.pair.Local.Address)
|
||||
e.AddUint16("localPort", w.pair.Local.Port)
|
||||
}
|
||||
if w.pair.Remote != nil {
|
||||
e.AddString("remoteProtocol", w.pair.Remote.Protocol.String())
|
||||
e.AddString("remoteCandidateType", w.pair.Remote.Typ.String())
|
||||
e.AddString("remoteAdddress", MaybeTruncateIP(w.pair.Remote.Address))
|
||||
e.AddString("remoteAddress", MaybeTruncateIP(w.pair.Remote.Address))
|
||||
e.AddUint16("remotePort", w.pair.Remote.Port)
|
||||
if w.pair.Remote.RelatedAddress != "" {
|
||||
e.AddString("relatedAdddress", MaybeTruncateIP(w.pair.Remote.RelatedAddress))
|
||||
e.AddString("relatedAddress", MaybeTruncateIP(w.pair.Remote.RelatedAddress))
|
||||
e.AddUint16("relatedPort", w.pair.Remote.RelatedPort)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user