log connection state every time detectAndConnect