This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Better identifier and logging for runtime upgrades #8123
Better identifier and logging for runtime upgrades #8123
Changes from 28 commits
4c0abc5
7f9b5b8
4883812
be549b4
8e97733
d84dad4
aeb7a0e
d968f58
ce4128b
ee8ae08
87baef8
01298eb
14bf87f
62be119
712c240
9a23940
93f299a
3cea840
ab9d4a3
b13ea31
d3a2368
c8ba546
726f0b6
ce123d1
67eead2
a444530
511db92
96d8ecf
1e41e0c
2655290
7ed0ecd
be547cb
415bca9
bdad8a5
2d6df71
05a5daf
d6e7b8b
6714bfc
d06d069
4e154f0
280666f
6ff2845
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Shouldn't this be under the target of the pallet?
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.
Then we would need to assume that each pallet is exposing a
LOG_TARGET
or some similar identifier. I actually propsed it earlier in this PR, but it didn't gain any attention :( #8128 (comment)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.
Ahh the link there is now broken, in this commit
if you look for TODO you will find my note that: 87baef8#diff-6faadaafc4a2f7556e8ba9cf9bd8544e5c039e97441e1d470a88c296d39819edR1378-R1383
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.
I think we should provide some macro
log_target!(Self)
that is concatenatingruntime
with the name ofSelf
in the runtime (by usingPalletInfo
)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.
👍 woudl also be good
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.
And you want to print this for each runtime upgrade?
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.
exactly, see example in the description, I think it is very important to have an overview of wtf is doing what.
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.
Same as above and what is with the new proc macros?
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.
ahh the new proc macro should go away now, that is old.