Add more diagnostics to SocketConnectionAttemptTest to fix the flaky test / Cleanup
Add convenient logging methods for logging exceptions quickly

.. Mainly useful for writing tests or ad-hoc debugging
Fix checkstyle
Disable logging temporarily when running testRegistrationAfterShutdown2
Disable logging temporarily when running testRegistrationAfterShutdown
Merge remote-tracking branch: upstream/master