Skip to content

Commit

Permalink
more specific logs
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik committed Oct 8, 2024
1 parent 8eb7995 commit 47ecbea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ func newSubscription[T any](

subs := models.NewSubscription(callback(notifier, rpcSub))

l := logger.With().Str("subscription-id", fmt.Sprintf("%p", subs)).Logger()
l := logger.With().
Str("gateway-subscription-id", fmt.Sprintf("%p", subs)).
Str("ethereum-subscription-id", string(rpcSub.ID)).
Logger()

publisher.Subscribe(subs)

Expand Down

0 comments on commit 47ecbea

Please sign in to comment.