Skip to content

Commit

Permalink
Improve log message if session was closed by proxy.
Browse files Browse the repository at this point in the history
Follow-up to #852.
  • Loading branch information
fancycode committed Nov 4, 2024
1 parent aafce18 commit 813ea52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mcu_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,12 @@ func (c *mcuProxyConnection) processBye(msg *ProxyServerMessage) {
case "session_resumed":
log.Printf("Session %s on %s was resumed by other client, resetting", c.SessionId(), c)
c.sessionId.Store("")
case "session_expired":
log.Printf("Session %s expired on %s, resetting", c.SessionId(), c)
c.sessionId.Store("")
case "session_closed":
log.Printf("Session %s was closed on %s, resetting", c.SessionId(), c)
c.sessionId.Store("")
default:
log.Printf("Received bye with unsupported reason from %s %+v", c, bye)
}
Expand Down

0 comments on commit 813ea52

Please sign in to comment.