From 7731875e9433f2f9bdfec6410e7007c18ac0481c Mon Sep 17 00:00:00 2001 From: Alok Date: Thu, 8 Aug 2024 14:21:25 +0530 Subject: [PATCH 1/2] fix: remove status --- p2p/pkg/apiserver/middleware.go | 2 +- x/contracts/txmonitor/txmonitor.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/pkg/apiserver/middleware.go b/p2p/pkg/apiserver/middleware.go index b8f918ccb..18e86b1b2 100644 --- a/p2p/pkg/apiserver/middleware.go +++ b/p2p/pkg/apiserver/middleware.go @@ -41,7 +41,7 @@ func newAccessLogHandler(log *slog.Logger) func(http.Handler) http.Handler { start := time.Now() h.ServeHTTP(recorder, req) log.Info("api access", - "status", recorder.status, + "http_status", recorder.status, "method", req.Method, "path", req.URL.Path, "duration", time.Since(start), diff --git a/x/contracts/txmonitor/txmonitor.go b/x/contracts/txmonitor/txmonitor.go index ea433692b..d07279702 100644 --- a/x/contracts/txmonitor/txmonitor.go +++ b/x/contracts/txmonitor/txmonitor.go @@ -246,7 +246,7 @@ func (m *Monitor) Sent(ctx context.Context, tx *types.Transaction) { } m.logger.Debug("transaction status", "txHash", tx.Hash(), - "status", status, + "txStatus", status, ) }() } From 8031ee09a9c3668ef08af764738d24c7978d33d7 Mon Sep 17 00:00:00 2001 From: Alok Date: Thu, 8 Aug 2024 19:37:40 +0530 Subject: [PATCH 2/2] fix: comment --- p2p/pkg/apiserver/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/pkg/apiserver/middleware.go b/p2p/pkg/apiserver/middleware.go index 18e86b1b2..e9ab1499d 100644 --- a/p2p/pkg/apiserver/middleware.go +++ b/p2p/pkg/apiserver/middleware.go @@ -42,7 +42,7 @@ func newAccessLogHandler(log *slog.Logger) func(http.Handler) http.Handler { h.ServeHTTP(recorder, req) log.Info("api access", "http_status", recorder.status, - "method", req.Method, + "http_method", req.Method, "path", req.URL.Path, "duration", time.Since(start), )