mirror of https://github.com/nucypher/nucypher.git
Two things: new TODO showing #724, and logging statement that shows node nickname when being remembered.
parent
5066b732ab
commit
6b9a205c8b
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue