mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 18:27:56 +00:00
Add api-name in cannot query the runtime API version warning (#3653)
Sometimes we see nodes printing this warning: ``` cannot query the runtime API version: Api called for an unknown Block: State already discarded for ``` The log is harmless, but let's print the api we got this for, so that we can track its call site and truly confirm it is harmless or fix it. Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
This commit is contained in:
committed by
GitHub
parent
b0f34e4b29
commit
1ead59773e
@@ -433,6 +433,7 @@ where
|
||||
.unwrap_or_else(|e| {
|
||||
gum::warn!(
|
||||
target: LOG_TARGET,
|
||||
api = ?stringify!($api_name),
|
||||
"cannot query the runtime API version: {}",
|
||||
e,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user