From d5c6762476d67233b1ebd7ab3f266b8ab79beb34 Mon Sep 17 00:00:00 2001 From: Techno Freak Date: Mon, 22 May 2023 01:25:28 +0300 Subject: [PATCH] chore: add chain logger for http --- pkg/http/http.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/http/http.go b/pkg/http/http.go index 5265e67..2813080 100644 --- a/pkg/http/http.go +++ b/pkg/http/http.go @@ -16,8 +16,11 @@ type Client struct { func NewClient(logger *zerolog.Logger, chain string) *Client { return &Client{ - logger: logger.With().Str("component", "http").Logger(), - chain: chain, + logger: logger.With(). + Str("component", "http"). + Str("chain", "chain"). + Logger(), + chain: chain, } }