From db0ce69e79fa85e747d1e459ae2569fc3654f3eb Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Mon, 22 Jan 2024 15:43:46 +0100 Subject: [PATCH] Log endpoint when we can't connect to it Signed-off-by: Lee Smet --- CHANGELOG.md | 1 + src/peer_manager.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4e776e..5c1c295 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Prefix decoding is now more resilient to bad prefix lengths. - The `-k/--key-file` flag is now global, allowing you to specify it for (inspect) sub commands. +- Log the actual endpoint when we can't connect to it ## [0.3.0] - 2024-01-17 diff --git a/src/peer_manager.rs b/src/peer_manager.rs index 7fba48f..e4d97e4 100644 --- a/src/peer_manager.rs +++ b/src/peer_manager.rs @@ -237,7 +237,7 @@ impl Inner { } } Err(e) => { - error!("Couldn't connect to remote: {e}"); + error!("Couldn't connect to {endpoint}: {e}"); (endpoint, None) } }