Fixed some logging for connection diagnostic functions.