Skip to content

Commit

Permalink
Remove Unnecessary Serving logs (#553)
Browse files Browse the repository at this point in the history
- Removes unnecessary serving logs for qms vs cms
  • Loading branch information
Kbhat1 authored Nov 22, 2024
1 parent 042ea18 commit 5869793
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,8 @@ func (app *BaseApp) CreateQueryContext(height int64, prove bool) (sdk.Context, e
var cacheMS types.CacheMultiStore
if height < app.migrationHeight && app.qms != nil {
cacheMS, err = app.qms.CacheMultiStoreWithVersion(height)
app.logger.Info("SeiDB Archive Migration: Serving Query From Iavl", "height", height)
} else {
cacheMS, err = app.cms.CacheMultiStoreWithVersion(height)
app.logger.Info("SeiDB Archive Migration: Serving Query From State Store", "height", height)
}

if err != nil {
Expand Down Expand Up @@ -921,13 +919,11 @@ func handleQueryStore(app *BaseApp, path []string, req abci.RequestQuery) abci.R
if !ok {
return sdkerrors.QueryResultWithDebug(sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "multistore doesn't support queries"), app.trace)
}
app.logger.Info("SeiDB Archive Migration: Serving Query From Iavl", "height", req.Height)
} else {
queryable, ok = app.cms.(sdk.Queryable)
if !ok {
return sdkerrors.QueryResultWithDebug(sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "multistore doesn't support queries"), app.trace)
}
app.logger.Info("SeiDB Archive Migration: Serving Query From State Store", "height", req.Height)
}

// "/store" prefix for store queries
Expand Down

0 comments on commit 5869793

Please sign in to comment.