Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion server/ingester/flow_log/log_data/l7_flow_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"encoding/hex"
"fmt"
"net"
"net/http"
"time"

"github.com/deepflowio/deepflow/server/ingester/config"
Expand Down Expand Up @@ -558,7 +559,10 @@ func (h *L7FlowLog) fillExceptionDesc(l *pb.AppProtoLogsData) {
code := l.Resp.Code
switch datatype.L7Protocol(h.L7Protocol) {
case datatype.L7_PROTOCOL_HTTP_1, datatype.L7_PROTOCOL_HTTP_2:
h.ResponseException = GetHTTPExceptionDesc(uint16(code))
// only set exception message for HTTP status >= 400
if code >= http.StatusBadRequest {
h.ResponseException = GetHTTPExceptionDesc(uint16(code))
}
case datatype.L7_PROTOCOL_DNS:
h.ResponseException = GetDNSExceptionDesc(uint16(code))
case datatype.L7_PROTOCOL_DUBBO:
Expand Down
Loading