From 10b27a49c05b696fb48ca044f8e4b3410794cbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Schr=C3=B6der?= Date: Thu, 27 Jan 2022 06:32:22 +0100 Subject: [PATCH] client: debug logging --- client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 5ddc6b18..3de6b0b9 100644 --- a/client.go +++ b/client.go @@ -382,7 +382,7 @@ func (c *Client) monitor(ctx context.Context) { dlog.Printf("trying to restore session") if err := c.ActivateSessionWithContext(ctx, s); err != nil { - dlog.Printf("restore session failed") + dlog.Printf("restore session failed: %v", err) action = recreateSession continue } @@ -406,6 +406,8 @@ func (c *Client) monitor(ctx context.Context) { action = createSecureChannel continue } + dlog.Print("session recreated") + action = transferSubscriptions case transferSubscriptions: