Added logging for connectivity changes