Issue #3146 Fix alert viz log statement.

Change-Id: Id55d73a77b7f408e02ea6fe6d528650839e535d0

Former-commit-id: 935b0c20e0 [formerly 148bbebd42] [formerly e484749e1c] [formerly 216d3ba749 [formerly e484749e1c [formerly deef73c921f9ba90b3db0f5793355f05ae861ffa]]]
Former-commit-id: 216d3ba749
Former-commit-id: 1994b7765124fe7e9cc1497ec2bc5f23c0a38596 [formerly dbb440eeb4]
Former-commit-id: 1a861317f9
This commit is contained in:
Richard Peter 2014-07-14 16:54:27 -05:00
parent d5ca7c1946
commit e5411891fd

View file

@ -31,6 +31,7 @@
# 08/09/2013 #1571 randerso Changed projections to use the Java
# ProjectionType enumeration
# 07/09/2014 #3146 randerso Added check for duplicate smartInit
# rferrel Corrected log to alertviz.
#
########################################################################
import types
@ -531,11 +532,12 @@ def otherParse(serverhost, mhsid, port,
LogStream.logProblem(message);
# log error to alertViz
from ufpy import NotificationMessage
nfm = NotificationMessage.NotificationMessage(message=message,
category="GFE", priority=1, source="GFE")
nfm.send()
from com.raytheon.uf.edex.core import EDEXUtil
from com.raytheon.uf.common.status import UFStatus_Priority as Priority
EDEXUtil.sendMessageAlertViz(Priority.ERROR,
"com.raytheon.edex.plugin.gfe", "GFE", "GFE", message,
message, None)
# remove duplicate
for module in modules[1:]:
javainitmodules.remove(module)