Logging of connection attempts

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 1.4.0-stable branch.