Skip to content

Commit 7f8a868

Browse files
committed
chore: debug logging cleanup
1 parent b47436c commit 7f8a868

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/common/version_modifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ func (s SimpleVersionModifier) SetAppVersion(ctx context.Context, version uint64
3232
// Returns 0 as the default version, which is sufficient for testing.
3333
func (s SimpleVersionModifier) AppVersion(ctx context.Context) (uint64, error) {
3434
return 0, nil
35-
}
35+
}

x/ccv/provider/keeper/proposal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,17 +338,20 @@ func (k Keeper) BeginBlockInit(ctx sdk.Context) {
338338
err := k.CreateConsumerClient(cachedCtx, &propsToExecute[i])
339339
if err != nil {
340340
// drop the proposal
341+
ctx.Logger().Info("consumer client could not be created: %w", err)
341342
continue
342343
}
343344

344345
consumerGenesis, found := k.GetConsumerGenesis(cachedCtx, prop.ChainId)
345346
if !found {
346347
// drop the proposal
348+
ctx.Logger().Info("consumer genesis could not be created")
347349
continue
348350
}
349351

350352
if len(consumerGenesis.Provider.InitialValSet) == 0 {
351353
// drop the proposal
354+
ctx.Logger().Info("consumer genesis initial validator set is empty - no validators opted in")
352355
continue
353356
}
354357

0 commit comments

Comments
 (0)