Fix logging in connect methods