Keep gunicorn logger_class internal

closes #1334
This commit is contained in:
Sylvain Bellemare 2017-03-24 11:56:35 +01:00 committed by Sylvain Bellemare
parent 3a80204039
commit 0edb1c18f2
3 changed files with 1 additions and 2 deletions

View File

@ -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')

View File

@ -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)

View File

@ -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': {