Improve debugging message in selectedconnection