-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace log
with tracing
and record extrinsic info
#535
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but you need to fix log!
in a couple of more places :P
@@ -31,7 +32,7 @@ pub use sp_runtime::generic::Era; | |||
/// "additional" parameters that are signed and used in transactions. | |||
/// see [`BaseExtrinsicParams`] for an implementation that is compatible with | |||
/// a Polkadot node. | |||
pub trait ExtrinsicParams<T: Config> { | |||
pub trait ExtrinsicParams<T: Config>: Debug { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering why this is wanted (and some of the other Debugs scattered about)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment below 👇
Chose to do on the trait itself rather than the method for a better error message.
tracing::debug!( | ||
"additional_and_extra_params: {:?}", | ||
additional_and_extra_params | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsdw because of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha!
Migrate to
tracing
crate in line withjsonrpsee
andsubstrate
.Also add some extra logs for inspecting extrinsic construction.