Permalink
Browse files

[NXCM-5197] warn -> debug for cases where there is a mismatch between…

… plexus and sisu naming
  • Loading branch information...
1 parent c9ee1c7 commit 7c70a62c78ff78191dba632c9686aac4227475a3 @jdillon jdillon committed Apr 5, 2013
View
6 nexus-core/src/main/java/org/sonatype/nexus/scheduling/AbstractNexusRepositoriesTask.java
@@ -125,6 +125,9 @@ protected boolean hasIntersectingTasksThatRuns( Map<String, List<ScheduledTask<?
// get all activeTasks that runs and are descendants of AbstractNexusRepositoriesTask
for ( String taskType : activeTasks.keySet() )
{
+ // FIXME: Use nexus scheduler to perform any task lookups so the code can be isolated/managed in one place
+ // FIXME: avoid using plexus container apis directly
+
ComponentDescriptor<?> cd =
plexusContainer.getComponentDescriptor( SchedulerTask.class, SchedulerTask.class.getName(),
taskType );
@@ -163,7 +166,8 @@ protected boolean hasIntersectingTasksThatRuns( Map<String, List<ScheduledTask<?
}
else
{
- getLogger().warn( "Could not find component that implements SchedulerTask of type='" + taskType + "'!" );
+ // this can happen due to mismatch between plexus and sisu naming, nothing we need to WARN the user about however
+ getLogger().debug( "Could not find component that implements SchedulerTask of type='" + taskType + "'!" );
}
}

0 comments on commit 7c70a62

Please sign in to comment.