From a038ee72b79efe2e8ecc0aa9b88eb97d3ff8fc05 Mon Sep 17 00:00:00 2001 From: Sithum Bopitiya Date: Thu, 26 Oct 2023 00:32:43 +0530 Subject: [PATCH] Add log before the hash --- relayer/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relayer/handlers.go b/relayer/handlers.go index a91a080..e6431c4 100644 --- a/relayer/handlers.go +++ b/relayer/handlers.go @@ -278,6 +278,7 @@ func (s *Server) handleWebsocket(w http.ResponseWriter, r *http.Request) { } } } + s.Log.InfofWithContext(ctx, fmt.Sprintf("before sig content evt.kind: %d isEcdsaPvtKey: %t isEvtChanged: %t len.evt.Tags: %d", evt.Kind, s.ecdsaPvtKey != nil, isEvtChanged, len(evt.Tags))) isHashAdded := false if evt.Kind == 1 && s.ecdsaPvtKey != nil && (isEvtChanged || len(evt.Tags) == 0) { sig, err := hashutil.GetSing(hashutil.GetSha256([]byte(evt.Content)), s.ecdsaPvtKey)