Extract logc to detect a repository is available or not