From fcb87b3c9b4e1a7cd76d8e9421cd99d0e7831bdc Mon Sep 17 00:00:00 2001 From: vrde Date: Wed, 23 Mar 2016 16:32:05 +0100 Subject: [PATCH] Fix banner --- bigchaindb/__init__.py | 1 - bigchaindb/processes.py | 16 +++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/bigchaindb/__init__.py b/bigchaindb/__init__.py index a5ebac7e..414397f6 100644 --- a/bigchaindb/__init__.py +++ b/bigchaindb/__init__.py @@ -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. diff --git a/bigchaindb/processes.py b/bigchaindb/processes.py index 51844d6c..20b8df8d 100644 --- a/bigchaindb/processes.py +++ b/bigchaindb/processes.py @@ -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']))