Use a feature flag to toggle security notifications

This commit is contained in:
Quentin Machu 2016-03-01 15:35:00 -05:00
parent bfcb1add48
commit 888f976e8d
3 changed files with 6 additions and 3 deletions

View file

@ -43,7 +43,7 @@ class SecurityNotificationWorker(QueueWorker):
if __name__ == '__main__':
if not features.SECURITY_SCANNER:
if not features.SECURITY_SCANNER or not features.SECURITY_NOTIFICATIONS:
logger.debug('Security scanner disabled; skipping SecurityNotificationWorker')
while True:
time.sleep(100000)