Skip to content

Commit

Permalink
chore: add chain logger for http
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Dec 10, 2023
1 parent 77540d7 commit 0a861f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 0a861f6

Please sign in to comment.