Issue #2142 same logging behavior for ufstatus and eclipse internal status messages
Change-Id: Ia488e8dd82cc41114ee2b80ecdbf00c3d85f8aa7 Former-commit-id:1f24afa9b0
[formerly3a9373a893
] [formerlye933ff43f4
] [formerlye933ff43f4
[formerly3101962858
]] [formerly1f24afa9b0
[formerly3a9373a893
] [formerlye933ff43f4
] [formerlye933ff43f4
[formerly3101962858
]] [formerlye13700ac63
[formerlye933ff43f4
[formerly3101962858
] [formerlye13700ac63
[formerly 25d258fc932799955ff66b76a11c979e6fa59543]]]]] Former-commit-id:e13700ac63
Former-commit-id:c7400da8d5
[formerly2892135233
] [formerlyed1cad67f5
] [formerly 44d8784aa4357032cc67bdd199077e7dad995f35 [formerly d4329c869d764cf912616f2bdcc3d0539dea40dc] [formerlyed1cad67f5
[formerly31298d0543
]]] Former-commit-id: ed51ead156bef8f6e52fb26786e305f7dc6af3d8 [formerly 89667c750bdde9a336a3f51e040dd8559a9960b5] [formerlyf5de7040ac
[formerlya12a848534
]] Former-commit-id:f5de7040ac
Former-commit-id:8137d46eab
This commit is contained in:
parent
a0e5af5d1b
commit
183691875d
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