From 3c06e7060159ccec826b5624c94c9a6bd3bef3d7 Mon Sep 17 00:00:00 2001 From: Ran Mishael <106548467+ranlavanet@users.noreply.github.com> Date: Thu, 9 May 2024 13:57:38 +0200 Subject: [PATCH] chore: PRT adding referrer log info (#1428) * 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 --- protocol/chainlib/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/chainlib/common.go b/protocol/chainlib/common.go index 44473af724..890d76e6e1 100644 --- a/protocol/chainlib/common.go +++ b/protocol/chainlib/common.go @@ -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 }