mirror of https://github.com/nucypher/nucypher.git
Don't log bytes directly, use hex instead.
parent
87fb4ba7c9
commit
fe2cc33990
|
@ -826,11 +826,12 @@ class Learner:
|
|||
#
|
||||
# Deserialize
|
||||
#
|
||||
response_data = response.content
|
||||
try:
|
||||
metadata = MetadataResponse.from_bytes(response.content)
|
||||
metadata = MetadataResponse.from_bytes(response_data)
|
||||
except Exception as e:
|
||||
self.log.warn(
|
||||
f"Failed to deserialize MetadataResponse from Teacher {current_teacher} ({e}): {response.content}"
|
||||
f"Failed to deserialize MetadataResponse from Teacher {current_teacher} ({e}): hex bytes={response_data.hex()}"
|
||||
)
|
||||
return
|
||||
|
||||
|
@ -839,7 +840,7 @@ class Learner:
|
|||
except Exception as e:
|
||||
# TODO (#567): bucket the node as suspicious
|
||||
self.log.warn(
|
||||
f"Failed to verify MetadataResponse from Teacher {current_teacher} ({e}): {response.content}"
|
||||
f"Failed to verify MetadataResponse from Teacher {current_teacher} ({e}): hex bytes={response_data.hex()}"
|
||||
)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue