From 197bc78ea19a9bb2dbb4b1a683a78b89f6f21f77 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Wed, 12 Apr 2023 09:51:18 -0400 Subject: [PATCH] Turn off Quic qlog since it jam the regular test info --- transport/internet/quic/qlogWriter.go | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/transport/internet/quic/qlogWriter.go b/transport/internet/quic/qlogWriter.go index 1b7913e6..dd13f419 100644 --- a/transport/internet/quic/qlogWriter.go +++ b/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 }