Skip to content

Commit

Permalink
client: debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Jan 27, 2022
1 parent 9bf9590 commit 10b27a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -406,6 +406,8 @@ func (c *Client) monitor(ctx context.Context) {
action = createSecureChannel
continue
}
dlog.Print("session recreated")

action = transferSubscriptions

case transferSubscriptions:
Expand Down

0 comments on commit 10b27a4

Please sign in to comment.