Browse Source

Turn off Quic qlog since it jam the regular test info

yuhan6665 2 years ago
parent
commit
197bc78ea1
1 changed files with 8 additions and 12 deletions
  1. 8 12
      transport/internet/quic/qlogWriter.go

+ 8 - 12
transport/internet/quic/qlogWriter.go

@@ -1,22 +1,18 @@
 package quic
 
-import (
-	"fmt"
-
-	"github.com/xtls/xray-core/common/log"
-)
-
 type QlogWriter struct {
 	connID []byte
 }
 
 func (w *QlogWriter) Write(b []byte) (int, error) {
-	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),
-		})
-	}
+	// 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
 }