add elasticsearch bypass

mm-logging
lza_menace 4 years ago
parent cede7269d0
commit 10298ced8f

@ -37,6 +37,7 @@ DB_PASS = 'zzzzzzzzz'
# Development # Development
TEMPLATES_AUTO_RELOAD = True TEMPLATES_AUTO_RELOAD = True
ELASTICSEARCH_ENABLED = False
# Social # Social
SOCIAL = { SOCIAL = {

@ -4,6 +4,7 @@ from wowstash import config
def send_es(data): def send_es(data):
if getattr(config, 'ELASTICSEARCH_ENABLED', False):
try: try:
es = Elasticsearch( es = Elasticsearch(
[getattr(config, 'ELASTICSEARCH_HOST', 'localhost')] [getattr(config, 'ELASTICSEARCH_HOST', 'localhost')]

Loading…
Cancel
Save