From 478e686f24621e08471d9192ad9d823ded669020 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 9 Mar 2022 15:01:56 +0100 Subject: [PATCH] Add more logging around reconnects --- src/connection.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection.rs b/src/connection.rs index fb2441c..139870a 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -96,6 +96,7 @@ impl EppConnection { } pub(crate) async fn reconnect(&mut self) -> Result<(), Error> { + debug!("{}: reconnecting", self.registry); self.ready = false; self.stream = self.connector.connect(self.timeout).await?; self.greeting = self.get_epp_response().await?; @@ -107,6 +108,7 @@ impl EppConnection { /// receieved to the request pub(crate) async fn transact(&mut self, content: &str) -> Result { if !self.ready { + debug!("{}: connection not ready", self.registry); self.reconnect().await?; }