Skip to content

Commit

Permalink
add: tcp 支持 response 记录
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Nov 20, 2023
1 parent 568d0fb commit aa0b7c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions type_tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func (b *Tcp) Handler(entry *logrus.Entry) (*entries, []tag) {
b.ResponseStatus = status.(int)
}

response, ok := entry.Data["response"]
if ok {
b.Response = response
}

controllerAction, ok := entry.Data["controller_action"]
if ok {
b.ControllerAction = controllerAction.(string)
Expand Down

0 comments on commit aa0b7c3

Please sign in to comment.