Skip to content

Commit

Permalink
log exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ipdae committed May 29, 2024
1 parent adcf6d5 commit 26c4026
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NineChronicles.DataProvider/RenderSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken)
var outputState = new World(_blockChainStates.GetWorldState(ev.OutputState));
var collectionSheet = outputState.GetSheet<CollectionSheet>();
var avatar = MySqlStore.GetAvatar(activateCollection.AvatarAddress, true);

// check chain state ids to fill in missing collection data
var collectionState = outputState.GetCollectionState(activateCollection.AvatarAddress);
var existIds = avatar.ActivateCollections.Select(i => i.Id);
Expand Down Expand Up @@ -1433,6 +1434,10 @@ protected override Task ExecuteAsync(CancellationToken stoppingToken)

MySqlStore.UpdateAvatar(avatar);
}
else
{
Log.Error($"ActivateColleciton RenderSubscriber: {ev.Exception?.Message}");
}
});

return Task.CompletedTask;
Expand Down

0 comments on commit 26c4026

Please sign in to comment.