enable notification only from some point

This commit is contained in:
belliash 2012-01-09 11:48:11 +01:00
parent b85e61f3a5
commit 412bc2e177
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function checkVersion() {
# Parameters: %message% %code% # Parameters: %message% %code%
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
function die() { function die() {
if isEnabled ${LOGGING} && isSet NOTIFY; then if isEnabled ${LOGGING} && isSet NOTIFY && isEnabled ${EZNOTIFY}; then
local LOGS="Full output from logs:\n\n$(cat ${LOGFILE})" local LOGS="Full output from logs:\n\n$(cat ${LOGFILE})"
local MESG="The ${EZNAME} has failed with code: ${2} and message: ${1}" local MESG="The ${EZNAME} has failed with code: ${2} and message: ${1}"
local TOPIC="The ${EZNAME} process has failed!" local TOPIC="The ${EZNAME} process has failed!"