From 21446ba5d49673c89e7fb3c6a987d755c046c852 Mon Sep 17 00:00:00 2001 From: Meta Gowork Date: Tue, 12 Apr 2022 21:39:31 +0800 Subject: [PATCH] chore: adjust code --- component/sniffer/dispatcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/sniffer/dispatcher.go b/component/sniffer/dispatcher.go index 91bf7f46..677c6ffa 100644 --- a/component/sniffer/dispatcher.go +++ b/component/sniffer/dispatcher.go @@ -53,13 +53,13 @@ func (sd *SnifferDispatcher) cover(conn *CN.BufferedConn, metadata *C.Metadata) bufferedLen := conn.Buffered() bytes, err := conn.Peek(bufferedLen) if err != nil { - log.Warnln("[Sniffer] the data lenght not enough") + log.Debugln("[Sniffer] the data lenght not enough") continue } host, err := sniffer.SniffTCP(bytes) if err != nil { - log.Warnln("[Sniffer][%s] Sniff data failed", sniffer.Protocol()) + log.Debugln("[Sniffer][%s] Sniff data failed", sniffer.Protocol()) continue } metadata.Host = host