aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-10-03 08:29:30 +0000
committerPjotr Prins2016-10-03 08:29:30 +0000
commit2acd8aa41580aaccc4119a6f504bdfb5e986e0c2 (patch)
treeaf65b67a6488973f878127b6bc76c908e077ee79 /wqflask/utility
parente1ba11b55fe849737a649939156c56fe90b0d3e9 (diff)
downloadgenenetwork2-2acd8aa41580aaccc4119a6f504bdfb5e986e0c2.tar.gz
Debug: sanitize some output
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/tools.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index 22779739..545c0427 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -50,7 +50,7 @@ def get_setting(command_id,guess=None):
if command is None:
command = value(guess)
if command is None or command == "":
- print command
+ # print command
raise Exception(command_id+' setting unknown or faulty (update default_settings.py?).')
logger.debug("Set "+command_id+"="+str(command))
return command
@@ -170,15 +170,14 @@ def show_settings():
logging.basicConfig(level=log_level)
logger.info(BLUE+"Mr. Mojo Risin 2"+ENDC)
- print "runserver.py: ****** The webserver has the following configuration ******"
+ print "runserver.py: ****** Webserver configuration ******"
keylist = app.config.keys()
keylist.sort()
for k in keylist:
try:
- print("%s %s%s%s%s" % (k,BLUE,BOLD,get_setting(k),ENDC))
+ print("%s: %s%s%s%s" % (k,BLUE,BOLD,get_setting(k),ENDC))
except:
- print("%s %s%s%s%s" % (k,GREEN,BOLD,app.config[k],ENDC))
-
+ print("%s: %s%s%s%s" % (k,GREEN,BOLD,app.config[k],ENDC))
# Cached values
WEBSERVER_MODE = get_setting('WEBSERVER_MODE')