From 74a516cde00d51d7d2c6117085cd7fda7a6e2405 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Fri, 16 Mar 2018 14:15:03 -0700 Subject: [PATCH] nt --- lemur/factory.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/lemur/factory.py b/lemur/factory.py index d841449f..107fb70f 100644 --- a/lemur/factory.py +++ b/lemur/factory.py @@ -159,29 +159,6 @@ def configure_logging(app): stream_handler.setLevel(app.config.get('LOG_LEVEL', 'DEBUG')) app.logger.addHandler(stream_handler) - if app.config.get('ELASTICSEARCH_LOGGING', False): - try: - now = datetime.datetime.now() - es_handler = CMRESHandler( - hosts=[ - {'host': app.config.get("ELASTICSEARCH_LOGGING_HOST", "localhost"), - 'port': app.config.get("ELASTICSEARCH_LOGGING_PORT", 7104)}], - use_ssl=app.config.get("ELASTICSEARCH_LOGGING_USE_SSL", False), - verify_ssl=app.config.get("ELASTICSEARCH_LOGGING_VERIFY_SSL", False), - auth_type=CMRESHandler.AuthType.NO_AUTH, - es_index_name="{}-{}.{}.{}".format( - app.config.get("ELASTICSEARCH_LOGGING_INDEX", "lemur"), - now.year, - now.month, - now.day - ) - ) - es_handler.setLevel(app.config.get('ELASTICSEARCH_LOG_LEVEL', 'INFO')) - app.logger.addHandler(es_handler) - except Exception: - # Let's not let a dns failure to ES cause the service to fail. - app.logger.error("Unable to configure Elasticsearch logging.", exc_info=True) - if app.config.get('DEBUG_DUMP', False): activate_debug_dump()