[EGIT PATCH 3/3] Log decoration problems more silently
Seems our logging caused too much alerts in the UI.
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
.../internal/decorators/GitResourceDecorator.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
index 8d4a7c7..6d2f88e 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java
@@ -146,7 +146,9 @@ public class GitResourceDecorator extends LabelProvider implements
}
return Status.OK_STATUS;
} catch (Exception e) {
- return new Status(IStatus.ERROR, Activator.getPluginId(), "Failed to trigger resource decoration", e);
+ // We must be silent here or the UI will panic with lots of error messages
+ Activator.logError("Failed to trigger resource re-decoration", e);
+ return Status.OK_STATUS;
}
}
--
1.5.6.2.220.g44701