Two things: new TODO showing #724, and logging statement that shows node nickname when being remembered.

pull/730/head
jMyles 2019-02-05 16:52:53 -07:00
parent 5066b732ab
commit 6b9a205c8b
2 changed files with 2 additions and 1 deletions

View File

@ -418,7 +418,7 @@ class Learner:
node.certificate_filepath = certificate_filepath
self.node_storage.store_node_metadata(node=node)
self.log.info("Remembering {}, popping {} listeners.".format(node.checksum_public_address, len(listeners)))
self.log.info("Remembering {} ({}), popping {} listeners.".format(node.nickname, node.checksum_public_address, len(listeners)))
for listener in listeners:
listener.add(address)
self._node_ids_to_learn_about_immediately.discard(address)

View File

@ -274,6 +274,7 @@ def make_rest_app(
from nucypher.policy.models import Revocation
revocation = Revocation.from_bytes(request.data)
# TODO: This line sometimes raises an error because it tries to log the bytes of the revocation, which can have a "{" # 724
log.info("Received revocation: {} -- for arrangement {}".format(bytes(revocation), id_as_hex))
try:
with ThreadedSession(db_engine) as session: