Add some debug messages to the connection phase.