fix log msg
try to connect if needed