Logging of connection attempts (master)

We have found it useful to have more verbose logs when things go wrong, in order to be able to respond when the first connection attempt fails, instead of having to wait for all retries. 

This pull request adds some more logging to the master branch.