add a generic Log() function to the connection tracer

This commit is contained in:
Marten Seemann
2020-11-27 11:52:33 +07:00
parent a76879c305
commit ff1f433c36
9 changed files with 66 additions and 0 deletions

View File

@@ -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()
}