You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by li...@apache.org on 2024/12/12 14:08:51 UTC

(skywalking-rover) branch missing-details updated: Adding test log

This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch missing-details
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git


The following commit(s) were added to refs/heads/missing-details by this push:
     new c634ba0  Adding test log
c634ba0 is described below

commit c634ba0317a67b01d674e04eee1783bec80cdc8f
Author: mrproliu <74...@qq.com>
AuthorDate: Thu Dec 12 22:08:43 2024 +0800

    Adding test log
---
 pkg/accesslog/collector/protocols/http1.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pkg/accesslog/collector/protocols/http1.go b/pkg/accesslog/collector/protocols/http1.go
index df7b8c4..9cb8a27 100644
--- a/pkg/accesslog/collector/protocols/http1.go
+++ b/pkg/accesslog/collector/protocols/http1.go
@@ -89,6 +89,9 @@ func (p *HTTP1Protocol) Analyze(connection *PartitionConnection, _ *AnalyzeHelpe
 		}
 
 		messageType, err := reader.IdentityMessageType(buf)
+		log.Infof("ready to reading message type, messageType: %v, buf: %p, data id: %d, "+
+			"connection ID: %d, random ID: %d, error: %v", messageType, buf, buf.Position().DataID(),
+			metrics.ConnectionID, metrics.RandomID, err)
 		if err != nil {
 			http1Log.Debugf("failed to identity message type, %v", err)
 			if buf.SkipCurrentElement() {
@@ -113,6 +116,8 @@ func (p *HTTP1Protocol) Analyze(connection *PartitionConnection, _ *AnalyzeHelpe
 			finishReading = buf.RemoveReadElements(false)
 		case enums.ParseResultSkipPackage:
 			finishReading = buf.SkipCurrentElement()
+			log.Infof("skip current element, data id: %d, buf: %p, connection ID: %d, random ID: %d",
+				buf.Position().DataID(), buf, metrics.ConnectionID, metrics.RandomID)
 		}
 
 		if finishReading {