mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-23 07:23:01 +00:00
Turn off Quic qlog since it jam the regular test info
This commit is contained in:
parent
039e5f2078
commit
197bc78ea1
@ -1,22 +1,18 @@
|
|||||||
package quic
|
package quic
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/xtls/xray-core/common/log"
|
|
||||||
)
|
|
||||||
|
|
||||||
type QlogWriter struct {
|
type QlogWriter struct {
|
||||||
connID []byte
|
connID []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *QlogWriter) Write(b []byte) (int, error) {
|
func (w *QlogWriter) Write(b []byte) (int, error) {
|
||||||
if len(b) > 1 { // skip line separator "0a" in qlog
|
// to much log, only turn on when debug Quic
|
||||||
log.Record(&log.GeneralMessage{
|
|
||||||
Severity: log.Severity_Debug,
|
// if len(b) > 1 { // skip line separator "0a" in qlog
|
||||||
Content: fmt.Sprintf("[%x] %s", w.connID, b),
|
// log.Record(&log.GeneralMessage{
|
||||||
})
|
// Severity: log.Severity_Debug,
|
||||||
}
|
// Content: fmt.Sprintf("[%x] %s", w.connID, b),
|
||||||
|
// })
|
||||||
|
// }
|
||||||
return len(b), nil
|
return len(b), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user