Merge "Issue #2142 same logging behavior for ufstatus and eclipse internal status messages" into development
Former-commit-id:8b160e13c3
[formerly4cf04ad3ac
] [formerly9e43f15f4f
] [formerly8b160e13c3
[formerly4cf04ad3ac
] [formerly9e43f15f4f
] [formerlycd0c71cd20
[formerly9e43f15f4f
[formerly 8b6f86a4c6a9111a87184a5c8ddbfcf3f7322084]]]] Former-commit-id:cd0c71cd20
Former-commit-id:88a1bb73e3
[formerly9c9130892e
] [formerly 87652d7b114829a8a73ddbac538af904a49e8cc4 [formerlyae7265f6a0
]] Former-commit-id: 3fd7d01ebe0fa00caf9f11fdf890dfbd2c868f52 [formerlyfdad0c2bff
] Former-commit-id:52b6cea4ff
This commit is contained in:
commit
11f4136b51
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue