aboutsummaryrefslogtreecommitdiff
path: root/jobmanager.py
diff options
context:
space:
mode:
authorTom Ritter <tom@ritter.vg>2017-03-03 14:50:31 -0600
committerTom Ritter <tom@ritter.vg>2017-03-03 14:50:31 -0600
commit129b2869e2da66c3cc2b34e3fc1a0663283a44c7 (patch)
tree24b5be5a26bc3636532c1b1af9451137ebdcc912 /jobmanager.py
parentfe136533e9fcd25d1ad9b254e807b116fe4e2615 (diff)
Hopefully finally solve the bug about only getting success messages for state change alerts
Diffstat (limited to 'jobmanager.py')
-rwxr-xr-xjobmanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/jobmanager.py b/jobmanager.py
index 1683e2c..5b3505f 100755
--- a/jobmanager.py
+++ b/jobmanager.py
@@ -69,6 +69,7 @@ class JobManager:
if lastRunStatus.CurrentStateSuccess == False and \
thisJob.notifyOnFailureEvery() == JobBase.JobFailureNotificationFrequency.ONSTATECHANGE and \
lastRunStatus.NumFailures >= thisJob.numberFailuresBeforeNotification():
+ logging.info("Notifying of success (state change). " + str(lastRunStatus.NumFailures) + " >= " + str(thisJob.numberFailuresBeforeNotification()))
if not thisJob.onStateChangeSuccess():
emailWorks = False
lastRunStatus.markSuccessful()