Skip to content

Commit

Permalink
resolve: relayminer logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Dec 13, 2024
1 parent c920e22 commit 6316175
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/relayer/session/sessiontree.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package session

import (
"bytes"
"context"
"crypto/sha256"
"fmt"
"os"
Expand Down Expand Up @@ -97,7 +96,8 @@ func NewSessionTree(
// contain a non-hashed Relay that could be used to validate the proof on-chain.
trie := smt.NewSparseMerkleSumTrie(treeStore, protocol.NewTrieHasher(), smt.WithValueHasher(nil))

logger := polylog.Ctx(context.TODO()).With(
logger = logger.With(
"store_path", storePath,
"session_id", sessionHeader.SessionId,
"supplier_operator_address", supplierOperatorAddress,
)
Expand All @@ -110,7 +110,6 @@ func NewSessionTree(
sessionSMT: trie,
sessionMu: &sync.Mutex{},
supplierOperatorAddress: supplierOperatorAddress,
logger: logger,
}

return sessionTree, nil
Expand Down

0 comments on commit 6316175

Please sign in to comment.