]> source.dussan.org Git - sonarqube.git/commitdiff
Improve unassociated mode logs
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 29 Sep 2015 11:54:48 +0000 (13:54 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 30 Sep 2015 14:28:08 +0000 (16:28 +0200)
sonar-batch/src/main/java/org/sonar/batch/repository/ProjectRepositoriesProvider.java

index 2006167509edf754dbf1e4a3e637ad0bea3a8537..eecca8b1dfef081c3ec9417b21218f0b10d6d342 100644 (file)
@@ -58,7 +58,7 @@ public class ProjectRepositoriesProvider extends ProviderAdapter {
     if (mode.isIssues()) {
       if (!project.exists()) {
         LOG.warn("Project doesn't exist on the server. All issues will be marked as 'new'.");
-      } else if (project.lastAnalysisDate() == null) {
+      } else if (project.lastAnalysisDate() == null && !mode.isNotAssociated()) {
         LOG.warn("No analysis has been found on the server for this project. All issues will be marked as 'new'.");
       }
     }