From 489f0c4a1131b9d30adfc90cc228a4a920fed7ce Mon Sep 17 00:00:00 2001 From: aloknerurkar Date: Thu, 8 Aug 2024 19:45:06 +0530 Subject: [PATCH] fix: remove status (#325) --- p2p/pkg/apiserver/middleware.go | 4 ++-- x/contracts/txmonitor/txmonitor.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/pkg/apiserver/middleware.go b/p2p/pkg/apiserver/middleware.go index b8f918ccb..e9ab1499d 100644 --- a/p2p/pkg/apiserver/middleware.go +++ b/p2p/pkg/apiserver/middleware.go @@ -41,8 +41,8 @@ func newAccessLogHandler(log *slog.Logger) func(http.Handler) http.Handler { start := time.Now() h.ServeHTTP(recorder, req) log.Info("api access", - "status", recorder.status, - "method", req.Method, + "http_status", recorder.status, + "http_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, ) }() }