Skip to content
Snippets Groups Projects
Commit e54adc6f authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

added a debug log on disconnect

parent ff226b00
No related branches found
No related tags found
2 merge requests!18Release,!13Hotfix/connection locks
......@@ -331,6 +331,7 @@ func (h *Host) disconnect() {
// connection. In that case, we should not close a connection which does not
// exist
if h.connection != nil {
jww.INFO.Printf("Disconnected from %s at %s", h.GetId(), h.GetAddress())
err := h.connection.Close()
if err != nil {
jww.ERROR.Printf("Unable to close connection to %s: %+v",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment