forked from quic-go/quic-go
add a generic Log() function to the connection tracer
This commit is contained in:
@@ -417,3 +417,12 @@ func (t *connectionTracer) LossTimerCanceled() {
|
||||
t.recordEvent(time.Now(), &eventLossTimerCanceled{})
|
||||
t.mutex.Unlock()
|
||||
}
|
||||
|
||||
func (t *connectionTracer) Debug(name, msg string) {
|
||||
t.mutex.Lock()
|
||||
t.recordEvent(time.Now(), &eventGeneric{
|
||||
name: name,
|
||||
msg: msg,
|
||||
})
|
||||
t.mutex.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user