aboutsummaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-21 16:57:07 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-21 16:57:07 +0100
commit96d1f1496643f47fac765a1852e7e648649d08b3 (patch)
tree5a2913f74ff788aa60af27f251dcffd77e9d3bb8 /src/client.rs
parent8858c9428936534ef2b62d73283cd800f4b838d6 (diff)
downloadnetapp-96d1f1496643f47fac765a1852e7e648649d08b3.tar.gz
netapp-96d1f1496643f47fac765a1852e7e648649d08b3.zip
Avoid logging full node IDs
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client.rs b/src/client.rs
index 27cd1b8..c9dbd02 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -79,10 +79,11 @@ impl ClientConn {
read.read_exact(&mut their_version_tag[..]).await?;
if their_version_tag != netapp.version_tag {
let msg = format!(
- "Different netapp versions: {:?} (theirs) vs. {:?} (ours)",
- their_version_tag, netapp.version_tag
+ "different version tags: {} (theirs) vs. {} (ours)",
+ hex::encode(their_version_tag),
+ hex::encode(netapp.version_tag)
);
- error!("{}", msg);
+ error!("Cannot connect to {}: {}", hex::encode(&peer_id[..8]), msg);
return Err(Error::VersionMismatch(msg));
}