fixes several log formatting issues.

pull/3416/head
KPrasch 2024-01-23 19:35:26 +01:00
parent 8af8133c2d
commit fb13103b14
3 changed files with 8 additions and 6 deletions

View File

@ -404,7 +404,8 @@ class Operator(BaseActor):
pending_tx = self.dkg_storage.get_transcript_receipt(ritual_id=ritual_id)
if pending_tx:
self.log.debug(
f"Node {self.transacting_power.account} has pending tx {pending_tx} for posting transcript for ritual {ritual_id}; skipping execution"
f"Node {self.transacting_power.account} has pending tx {pending_tx.hex()} "
f"for posting transcript for ritual {ritual_id}; skipping execution"
)
return None

View File

@ -208,11 +208,15 @@ class RegistrySourceManager:
try:
source = source_class(domain=self.domain)
except RegistrySource.Unavailable:
self.logger.warn(f"Fetching registry from {source_class} failed.")
self.logger.warn(
f"Fetching registry from {source_class.__name__} failed."
)
continue
else:
if not source.is_primary:
message = f"Warning: {source_class} is not a primary source."
message = (
f"Warning: {source_class.__name__} is not a primary source."
)
self.logger.warn(message)
return source
self.logger.warn("All known registry sources failed.")

View File

@ -871,9 +871,6 @@ class Ursula(Teacher, Character, Operator):
# Only *YOU* can prevent forest fires
self.revoked_policies: Set[bytes] = set()
# Care to introduce yourself?
message = "THIS IS YOU: {}: {}".format(self.__class__.__name__, self)
self.log.info(message)
self.log.info(self.banner.format(self.nickname))
else: