Merge "Issue #2142 same logging behavior for ufstatus and eclipse internal status messages" into development

Former-commit-id: 9e43f15f4f [formerly 8b6f86a4c6a9111a87184a5c8ddbfcf3f7322084]
Former-commit-id: cd0c71cd20
This commit is contained in:
Nate Jensen 2013-08-28 11:42:17 -05:00 committed by Gerrit Code Review
commit ae7265f6a0

View file

@ -74,21 +74,20 @@ public class SystemStatusHandler extends AbstractStatusHandler {
final IStatus status = statusAdapter.getStatus();
StatusMessage sm = null;
String msg = null;
Throwable t = null;
if (status instanceof VizStatusInternal) {
VizStatusInternal vs = (VizStatusInternal) status;
msg = vs.getMessage();
t = vs.getException();
sm = vs.toStatusMessage();
} else {
sm = from(status);
msg = sm.getDetails();
}
Priority p = sm.getPriority();
String msg = status.getMessage();
Throwable t = status.getException();
logStatus(p, msg, t);
try {
logStatus(p, msg, t);
AlertVizClient.sendMessage(sm);
} catch (final AlertvizException e) {
// not a good situation, since we can't communicate with the log