Skip to content

Commit

Permalink
Merge pull request #72 from Ilhasoft/add-logger-in-train
Browse files Browse the repository at this point in the history
Add logger.error in train fail
  • Loading branch information
Douglas Paz committed Sep 11, 2018
2 parents 7148938 + a136d7b commit 92071bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bothub_nlp/server/handlers/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 92071bb

Please sign in to comment.