diff options
author | Pjotr Prins | 2016-06-18 09:06:00 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-18 09:06:00 +0000 |
commit | aa5ca3053c9c866436c4d33b9165703f0f631083 (patch) | |
tree | 117fd79bab971df983ef4e26573aeb0b36290ee6 /wqflask/runserver.py | |
parent | 0a11c10237d899cfdddfcfcf4d17140da9421f7d (diff) | |
download | genenetwork2-aa5ca3053c9c866436c4d33b9165703f0f631083.tar.gz |
Logger: more info
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r-- | wqflask/runserver.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index 4556056d..344826ce 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -24,7 +24,19 @@ import logging import utility.logger logger = utility.logger.getLogger(__name__ ) -logger.info(app.config) +BLUE = '\033[94m' +GREEN = '\033[92m' +BOLD = '\033[1m' +ENDC = '\033[0m' + +# We always output this information on startup +print "runserver.py: ****** The webserver has the following configuration ******" +keylist = app.config.keys() +keylist.sort() +for k in keylist: + print("%s %s%s%s%s" % (k,BLUE,BOLD,app.config[k],ENDC)) + +logger.info("GN2 is running. Visit %shttp://localhost:5003/%s" % (BLUE,ENDC)) from utility.tools import WEBSERVER_MODE |