diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-10-03 15:21:48 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-10-03 15:21:48 +0000 |
commit | 88dd2af107447585cb888db55d6f7e931d32783e (patch) | |
tree | 5525f7bb2966cd2ea012ac3096cc3b2ed1842a6b /ick_controller.py | |
parent | af3075f0ec731631678d375ba624e5e3e9b3a717 (diff) | |
download | ick2-88dd2af107447585cb888db55d6f7e931d32783e.tar.gz |
Add: More logging to syslog to debug startup problem
Diffstat (limited to 'ick_controller.py')
-rw-r--r-- | ick_controller.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ick_controller.py b/ick_controller.py index 4eda11c..5d3c5e3 100644 --- a/ick_controller.py +++ b/ick_controller.py @@ -74,10 +74,18 @@ logging.info('config is %r', config) ick2.setup_logging(config) ick2.log.log('info', msg_text='Ick2 controller starts', config=config) + api = ick2.ControllerAPI() +ick2.log.log('info', msg_text='created ControllerAPI') + api.set_state_directory(config['statedir']) +ick2.log.log('info', msg_text='called ControllerAPI.set_state_directory') + api.load_projects() +ick2.log.log('info', msg_text='called ControllerAPI.load_projects') + app = apifw.create_bottle_application(api, counter, dict_logger, config) +ick2.log.log('info', msg_text='called apifw.create_bottle_application') # If we are running this program directly with Python, and not via # gunicorn, we can use the Bottle built-in debug server, which can |