From 88dd2af107447585cb888db55d6f7e931d32783e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 3 Oct 2017 15:21:48 +0000 Subject: Add: More logging to syslog to debug startup problem --- ick_controller.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ick_controller.py') 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 -- cgit v1.2.1