Skip to content

Commit

Permalink
Set the MIRROR_PARSE_ERROR_LEVEL to info severity
Browse files Browse the repository at this point in the history
Currently if parsing a mirror url list this results in an error, but the
worst that can happen is that no mirrors are used.

In contrast the error gives the user the impression that something has
failed completely.
  • Loading branch information
laeubi committed May 23, 2024
1 parent 2cdf239 commit c0e5459
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.logging.Logger;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector;
import org.eclipse.equinox.p2.core.IProvisioningAgent;
import org.eclipse.equinox.p2.core.spi.IAgentServiceFactory;
import org.eclipse.sisu.equinox.EquinoxServiceFactory;
Expand All @@ -29,6 +31,10 @@
@Component(role = IProvisioningAgent.class)
public class DefaultProvisioningAgent implements IProvisioningAgent {

static {
MirrorSelector.MIRROR_PARSE_ERROR_LEVEL = IStatus.INFO;
}

@Requirement
private Logger log;

Expand Down

0 comments on commit c0e5459

Please sign in to comment.