Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
1572f721
Verified
Commit
1572f721
authored
1 month ago
by
Michal Kucharczyk
Browse files
Options
Downloads
Patches
Plain Diff
logging fixed
parent
a6f84ad0
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/client/transaction-pool/src/common/tracing_log_xt.rs
+10
-10
10 additions, 10 deletions
...rate/client/transaction-pool/src/common/tracing_log_xt.rs
substrate/client/transaction-pool/src/fork_aware_txpool/view.rs
+2
-1
2 additions, 1 deletion
...ate/client/transaction-pool/src/fork_aware_txpool/view.rs
with
12 additions
and
11 deletions
substrate/client/transaction-pool/src/common/tracing_log_xt.rs
+
10
−
10
View file @
1572f721
...
...
@@ -21,34 +21,34 @@
/// Logs every transaction from given `tx_collection` with given level.
macro_rules!
log_xt
{
(
data
:
hash
,
target
:
$target:expr
,
$level:expr
,
$tx_collection:expr
,
$text_with_format:expr
)
=>
{
for
tx
in
$tx_collection
{
for
tx
_hash
in
$tx_collection
{
tracing
::
event!
(
target
:
$target
,
$level
,
target
=
$target
,
tx_hash
=
format!
(
"{:?}"
,
tx
),
?
tx_hash
,
$text_with_format
,
);
}
};
(
data
:
hash
,
target
:
$target:expr
,
$level:expr
,
$tx_collection:expr
,
$text_with_format:expr
,
$
(
$arg:expr
),
*
)
=>
{
for
tx
in
$tx_collection
{
for
tx
_hash
in
$tx_collection
{
tracing
::
event!
(
target
:
$target
,
$level
,
target
=
$target
,
tx_hash
=
format!
(
"{:?}"
,
tx
),
?
tx_hash
,
$text_with_format
,
$
(
$arg
),
*
);
}
};
(
data
:
tuple
,
target
:
$target:expr
,
$level:expr
,
$tx_collection:expr
,
$text_with_format:expr
)
=>
{
for
tx
in
$tx_collection
{
for
(
tx
_hash
,
arg
)
in
$tx_collection
{
tracing
::
event!
(
target
:
$target
,
$level
,
target
=
$target
,
tx_hash
=
format!
(
"{:?}"
,
tx
.0
),
?
tx_hash
,
$text_with_format
,
tx
.1
arg
);
}
};
...
...
This diff is collapsed.
Click to expand it.
substrate/client/transaction-pool/src/fork_aware_txpool/view.rs
+
2
−
1
View file @
1572f721
...
...
@@ -179,7 +179,8 @@ where
target
:
LOG_TARGET
,
xts
.iter
()
.map
(|(
_
,
xt
)|
self
.pool
.validated_pool
()
.api
()
.hash_and_length
(
xt
)
.0
),
"view::submit_many at:{}"
,
self
.at.hash
);
self
.at.hash
);
self
.pool
.submit_at
(
&
self
.at
,
xts
)
.await
}
else
{
self
.pool
.submit_at
(
&
self
.at
,
xts
)
.await
...
...
This diff is collapsed.
Click to expand it.
Michal Kucharczyk
@michalkucharczyk
mentioned in commit
24a4b55e
·
1 week ago
mentioned in commit
24a4b55e
mentioned in commit 24a4b55efc067c7d382aeda03f58e20e0b106523
Toggle commit list
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment