Fix banner

This commit is contained in:
vrde 2016-03-23 16:32:05 +01:00
parent 0f212ea113
commit fcb87b3c9b
2 changed files with 13 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import os
import copy
def e(key, default=None, conv=None):
'''Get the environment variable `key`, fallback to `default`
if nothing is found.

View File

@ -1,4 +1,3 @@
import copy
import logging
import multiprocessing as mp
@ -13,6 +12,18 @@ from bigchaindb.web import server
logger = logging.getLogger(__name__)
BANNER = """
****************************************************************************
* *
* Initialization complete. BigchainDB is ready and waiting for events. *
* You can send events through the API documented at: *
* - http://docs.bigchaindb.apiary.io/ *
* *
* Listening to client connections on: {:<15} *
* *
****************************************************************************
"""
class Processes(object):
@ -94,5 +105,4 @@ class Processes(object):
# start message
block.initialized.wait()
p_voter.initialized.wait()
logger.info('Initialization complete. BigchainDB ready and waiting for events.')
logger.info('You can send events through the API documented at http://docs.bigchaindb.apiary.io/')
logger.info(BANNER.format(bigchaindb.config['server']['bind']))