Commit 8dc0f66f authored by novelailab's avatar novelailab

print error properly

parent d95affcb
...@@ -80,7 +80,7 @@ def init_config_model(): ...@@ -80,7 +80,7 @@ def init_config_model():
except Exception as e: except Exception as e:
ic(e) ic(e)
capture_exception(e) capture_exception(e)
logger.error("Failed to load model, restarting.") logger.error(str(e))
sys.exit(1) sys.exit(1)
config.model = model config.model = model
......
...@@ -18,6 +18,8 @@ import signal ...@@ -18,6 +18,8 @@ import signal
#Initialize model and config #Initialize model and config
model, config = init_config_model() model, config = init_config_model()
logger = config.logger logger = config.logger
#config.mainpid = open("app.pid", "r").read()
hostname = socket.gethostname() hostname = socket.gethostname()
sent_first_message = False sent_first_message = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment