Skip to content
Snippets Groups Projects
Verified Commit 1572f721 authored by Michal Kucharczyk's avatar Michal Kucharczyk
Browse files

logging fixed

parent a6f84ad0
Branches
No related merge requests found
......@@ -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
);
}
};
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment