Permalink
Browse files

Merge pull request #803 from sonatype/NXCM-5197-warn-to-debug-in-hasI…

…ntersectingTasksThatRuns

TRIVIAL: warn -> debug for mismatch between plexus and sisu name in tasks
  • Loading branch information...
2 parents 42e261f + 7c70a62 commit 46b1f8df3671dfb0e5c32b0ee45fbaa8987477f7 @jdillon jdillon committed Apr 9, 2013
@@ -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 46b1f8d

Please sign in to comment.