From 31298d0543c77c64416211cddb6e840893c467eb Mon Sep 17 00:00:00 2001 From: Nate Jensen Date: Tue, 27 Aug 2013 18:33:24 -0500 Subject: [PATCH] Issue #2142 same logging behavior for ufstatus and eclipse internal status messages Change-Id: Ia488e8dd82cc41114ee2b80ecdbf00c3d85f8aa7 Former-commit-id: 31019628585ad376ff81f2a74fd4bbe784173b6b [formerly 25d258fc932799955ff66b76a11c979e6fa59543] Former-commit-id: e13700ac63f8eb4d52a883eeb5bfd1b13c22339a --- .../raytheon/uf/viz/alertviz/SystemStatusHandler.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cave/com.raytheon.uf.viz.alertviz/src/com/raytheon/uf/viz/alertviz/SystemStatusHandler.java b/cave/com.raytheon.uf.viz.alertviz/src/com/raytheon/uf/viz/alertviz/SystemStatusHandler.java index 1fa4c1855a..9c04d56058 100644 --- a/cave/com.raytheon.uf.viz.alertviz/src/com/raytheon/uf/viz/alertviz/SystemStatusHandler.java +++ b/cave/com.raytheon.uf.viz.alertviz/src/com/raytheon/uf/viz/alertviz/SystemStatusHandler.java @@ -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