local messagetype
[ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1
case "${1}" in
- INFO|WARN|ERROR|LOG)
+ INFO|WARN|ERROR|LOG|QA)
messagetype="${1}"
shift
;;
return 0
}
+eqawarn() {
+ elog_base QA "$*"
+ echo -e " ${WARN}*${NORMAL} $*"
+ return 0
+}
+
elog() {
elog_base LOG "$*"
echo -e " ${GOOD}*${NORMAL} $*"
if not phase in logentries:
continue
for msgtype,msgcontent in logentries[phase]:
- pri = {"INFO": syslog.LOG_INFO, "WARN": syslog.LOG_WARNING, "ERROR": syslog.LOG_ERR, "LOG": syslog.LOG_NOTICE}
+ pri = {"INFO": syslog.LOG_INFO,
+ "WARN": syslog.LOG_WARNING,
+ "ERROR": syslog.LOG_ERR,
+ "LOG": syslog.LOG_NOTICE,
+ "QA": syslog.LOG_WARNING}
msgtext = "".join(msgcontent)
syslog.syslog(pri[msgtype], "%s: %s: %s" % (cpv, phase, msgtext))
syslog.closelog()