TW-57509 Make GitNotFound server health report WARN, not INFO
authorMikhail Khorkov <mikhail.khorkov@jetbrains.com>
Wed, 31 Oct 2018 08:34:25 +0000 (15:34 +0700)
committerMikhail Khorkov <mikhail.khorkov@jetbrains.com>
Wed, 31 Oct 2018 08:34:25 +0000 (15:34 +0700)
git-server-tc/src/jetbrains/buildServer/buildTriggers/vcs/git/health/GitNotFoundHealthReport.java

index 339fe53ece5429700fbe5a7fcbba3190038c8402..b59867bff8ab160298ee021acdf4488d19bdfe05 100644 (file)
@@ -29,7 +29,8 @@ public class GitNotFoundHealthReport extends HealthStatusReport {
 
   private static final String PREFIX = "gitNotFound";
   static final String REPORT_TYPE = PREFIX + "HealthReport";
-  private static final ItemCategory CATEGORY = new ItemCategory(PREFIX + "HealthCategory", "Git executable not found", ItemSeverity.INFO);
+  private static final ItemCategory CATEGORY =
+    new ItemCategory(PREFIX + "HealthCategory", "Git executable not found", ItemSeverity.WARN);
   static final String PATH_KEY = "path";
   static final String ERROR_KEY = "error";
 
@@ -70,7 +71,7 @@ public class GitNotFoundHealthReport extends HealthStatusReport {
       Map<String, Object> data = new HashMap<>();
       data.put(PATH_KEY, error.getGitPath());
       data.put(ERROR_KEY, error.getError());
-      resultConsumer.consumeGlobal(new HealthStatusItem(PREFIX + "HealthItemId", CATEGORY, ItemSeverity.INFO, data));
+      resultConsumer.consumeGlobal(new HealthStatusItem(PREFIX + "HealthItemId", CATEGORY, ItemSeverity.WARN, data));
     }
   }
 }