Make feed item update optional
- SF_NOTIFIER_FEED_ENABLED env var
True by default for backward compatibility
- cleanup config setting and validation
- redirect uwsgi request logs to file to limit noise
- cleanup logging path setting
Change-Id: I1e40a83ce5aadb58f9908c586bc0b92e02a902a9
Related-PROD: PRODX-15636
diff --git a/sf_notifier/helpers.py b/sf_notifier/helpers.py
index 9715545..6965b70 100644
--- a/sf_notifier/helpers.py
+++ b/sf_notifier/helpers.py
@@ -66,3 +66,9 @@
fields.append(_format_description(alert, add_links))
fields.append(alert['labels'])
return fields, action
+
+
+def is_true(name):
+ if isinstance(name, str):
+ return name.lower() == 'true'
+ return name is True