paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.8k stars 652 forks source link

Add debugging info for `StorageWeightReclaim` #5594

Closed Moliholy closed 3 weeks ago

Moliholy commented 3 weeks ago

When inspecting the logs we often encounter the following message:

Benchmarked storage weight smaller than consumed storage weight. benchmarked: {benchmarked_weight} consumed: {consumed_weight} unspent: {unspent}

However, it is very hard to guess which call is causing the issue.

With the changes proposed in this PR, information about the call is provided so that we can easily identify the source of the problem without further delay, and this way work more efficiently in solving the issue.

paritytech-cmd-bot-polkadot-sdk[bot] commented 1 week ago

Successfully created backport PR for stable2407:

paritytech-cmd-bot-polkadot-sdk[bot] commented 1 week ago

Successfully created backport PR for stable2409: