fixed logging cnonect fail