diff --git a/bigchaindb/__init__.py b/bigchaindb/__init__.py index 00085314..c0e4fd56 100644 --- a/bigchaindb/__init__.py +++ b/bigchaindb/__init__.py @@ -36,7 +36,6 @@ config = { 'bind': os.environ.get('BIGCHAINDB_SERVER_BIND') or 'localhost:9984', 'workers': None, # if none, the value will be cpu_count * 2 + 1 'threads': None, # if none, the value will be cpu_count * 2 + 1 - 'logger_class': 'bigchaindb.log.loggers.HttpServerLogger', }, 'database': _database_map[ os.environ.get('BIGCHAINDB_DATABASE_BACKEND', 'rethinkdb') diff --git a/bigchaindb/web/server.py b/bigchaindb/web/server.py index bcd44d11..b1525f9f 100644 --- a/bigchaindb/web/server.py +++ b/bigchaindb/web/server.py @@ -88,6 +88,7 @@ def create_server(settings): if not settings.get('threads'): settings['threads'] = (multiprocessing.cpu_count() * 2) + 1 + settings['logger_class'] = 'bigchaindb.log.loggers.HttpServerLogger' app = create_app(debug=settings.get('debug', False), threads=settings['threads']) standalone = StandaloneApplication(app, settings) diff --git a/tests/test_config_utils.py b/tests/test_config_utils.py index 2e843914..4234e242 100644 --- a/tests/test_config_utils.py +++ b/tests/test_config_utils.py @@ -195,7 +195,6 @@ def test_autoconfigure_read_both_from_file_and_env(monkeypatch, request): 'bind': SERVER_BIND, 'workers': None, 'threads': None, - 'logger_class': 'bigchaindb.log.loggers.HttpServerLogger', }, 'database': database, 'keypair': {