Skip to content

Commit

Permalink
chore: PRT adding referrer log info (#1428)
Browse files Browse the repository at this point in the history
* adding ip to referer request

* adding ip to json rpc

* adding ip to rest

* adding ip to tendermint

* fixing test

* adding ip to ReferrerRequest

* changing consumer ip to user ip

* referrer info added
  • Loading branch information
ranlavanet authored May 9, 2024
1 parent 4737838 commit 3c06e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/chainlib/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (rd *RefererData) SendReferer(refererMatchString string, chainId string, ms
userAgent, _ = c.Locals(metrics.UserAgentHeaderKey).(string)
}

utils.LavaFormatDebug("referer detected", utils.LogAttr("referer", refererMatchString))
utils.LavaFormatDebug("referer detected", utils.LogAttr("referer", refererMatchString), utils.LogAttr("ip", userIp), utils.LogAttr("msg", msg), utils.LogAttr("origin", origin), utils.LogAttr("userAgent", userAgent))
rd.ReferrerClient.AppendReferrer(metrics.NewReferrerRequest(refererMatchString, chainId, msg, referer, origin, userAgent, userIp))
return nil
}
Expand Down

0 comments on commit 3c06e70

Please sign in to comment.