Fix wrong rate limit + add a few logs. (#6440)

* Add trace log

* More tracing.

* Fix redundant rate limit.

* Add trace log.

* Improve logging.

Co-authored-by: eskimor <eskimor@no-such-url.com>
This commit is contained in:
eskimorandeskimor authored and GitHub committed 2022-12-15 09:47:06 +00:00
1 parent a3c81fe2a9
commit 3c1a28276d
4 files changed
+35 -3

No files matched your search

@@ -1327,6 +1327,11 @@ async fn get_approval_signatures_for_candidate<Context>(
// No need to block subsystem on this (also required to break cycle).
// We should not be sending this message frequently - caller must make sure this is bounded.
gum::trace!(
target: LOG_TARGET,
?candidate_hash,
"Spawning task for fetching sinatures from approval-distribution"
);
ctx.spawn("get-approval-signatures", Box::pin(get_approvals))
}