Better logging in ConnectionFactory