You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Xray-core/transport/internet/quic/qlogWriter.go

25 lines
483 B

package quic
import "github.com/quic-go/quic-go"
type QlogWriter struct {
connID quic.ConnectionID
}
func (w *QlogWriter) Write(b []byte) (int, error) {
// to much log, only turn on when debug Quic
// if len(b) > 1 { // skip line separator "0a" in qlog
// log.Record(&log.GeneralMessage{
// Severity: log.Severity_Debug,
// Content: fmt.Sprintf("[%x] %s", w.connID, b),
// })
// }
return len(b), nil
}
func (w *QlogWriter) Close() error {
// Noop
return nil
}