Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Jul 28, 2021
1 parent 729fb22 commit 86b1d6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dot/rpc/modules/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ import (
"github.com/ChainSafe/gossamer/lib/common"
"github.com/ChainSafe/gossamer/lib/runtime"
"github.com/ChainSafe/gossamer/pkg/scale"
log "github.com/ChainSafe/log15"
)

var logger = log.New("trie", "Trie", "module", "trie")

// StateCallRequest holds json fields
type StateCallRequest struct {
Method string `json:"method"`
Expand Down Expand Up @@ -391,9 +388,7 @@ func (sm *StateModule) GetStorageSize(r *http.Request, req *StateStorageSizeRequ

// QueryStorage isn't implemented properly yet.
func (sm *StateModule) QueryStorage(r *http.Request, req *StateStorageQueryRangeRequest, res *[]StorageChangeSetResponse) error {
logger.Warn("receiving data", "start", req.StartBlock, "end", req.EndBlock, "keys", req.Keys)
changesByBlock, err := sm.coreAPI.QueryStorage(req.StartBlock, req.EndBlock, req.Keys)
logger.Warn("after query", "err", err)
if err != nil {
return err
}
Expand All @@ -413,8 +408,6 @@ func (sm *StateModule) QueryStorage(r *http.Request, req *StateStorageQueryRange
})
}

logger.Warn("built response", "res", response)

*res = response
return nil
}
Expand Down

0 comments on commit 86b1d6f

Please sign in to comment.