diff --git a/bothub_nlp/server/handlers/train.py b/bothub_nlp/server/handlers/train.py index 6a67f439..4ade49e6 100644 --- a/bothub_nlp/server/handlers/train.py +++ b/bothub_nlp/server/handlers/train.py @@ -37,6 +37,8 @@ def post(self): 'status': TRAIN_STATUS_TRAINED, } except Exception as e: # pragma: no cover + from .. import logger + logger.error(e) # pragma: no cover languages_report[language] = { # pragma: no cover 'status': TRAIN_STATUS_FAILED, 'error': str(e),