From 075828f0acd9b0cd1852c8d604946bbf556423f9 Mon Sep 17 00:00:00 2001 From: Will Ronchetti Date: Tue, 4 May 2021 08:53:16 -0400 Subject: [PATCH] repair indexer main method (#198) --- pyproject.toml | 2 +- snovault/elasticsearch/es_index_listener.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4b0b0275f..44fe308fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicsnovault" -version = "4.7.5" +version = "4.7.6" description = "Storage support for 4DN Data Portals." authors = ["4DN-DCIC Team "] license = "MIT" diff --git a/snovault/elasticsearch/es_index_listener.py b/snovault/elasticsearch/es_index_listener.py index a24c66051..eb15d1b9e 100644 --- a/snovault/elasticsearch/es_index_listener.py +++ b/snovault/elasticsearch/es_index_listener.py @@ -230,7 +230,7 @@ def main(): # Loading app will have configured from config file. Reconfigure here: # Use `es_server=app.registry.settings.get('elasticsearch.server')` when ES logging is working - set_logging(in_prod=app.registry.settings.get('production'), level=logging.INFO) + set_logging(in_prod=testapp.app.registry.settings.get('production'), level=logging.INFO) return run(testapp, args.poll_interval, args.dry_run, args.path)