diff options
author | Lei Yan | 2013-04-30 22:15:38 +0000 |
---|---|---|
committer | Lei Yan | 2013-04-30 22:15:38 +0000 |
commit | 34312cfacdcb5af450d33ac3b54d7c01a6a61788 (patch) | |
tree | 20e0c5f430cfbb64eb4ba32d2210c83d3130e36e /wqflask/secure_server.py | |
parent | 8810c7735ed8a1bfa225449f7b388438e2ace890 (diff) | |
download | genenetwork2-34312cfacdcb5af450d33ac3b54d7c01a6a61788.tar.gz |
Changed path to log file
Added server port to configuration file
Diffstat (limited to 'wqflask/secure_server.py')
-rw-r--r-- | wqflask/secure_server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/secure_server.py b/wqflask/secure_server.py index 425fce89..5448dbeb 100644 --- a/wqflask/secure_server.py +++ b/wqflask/secure_server.py @@ -49,16 +49,19 @@ security = Security(app, user_datastore) import logging -file_handler = logging.FileHandler("/tmp/flask_gn_log") +file_handler = logging.FileHandler(app.config['LOGFILE']) file_handler.setLevel(logging.DEBUG) app.logger.addHandler(file_handler) import logging_tree logging_tree.printout() +#print("app.config is:", app.config) + if __name__ == '__main__': #create_user() app.run(host='0.0.0.0', + port=app.config['SERVER_PORT'], use_debugger=False, threaded=True, use_reloader=True) |