Actually emit a critical log in the case that an unhandled error happens and we're choosing not to handle it here.

pull/391/head
jMyles 2018-08-27 19:47:38 +02:00 committed by Kieran R. Prasch
parent 136b485664
commit aa5566c856
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ class Character:
def handle_learning_errors(self, *args, **kwargs):
failure = args[0]
if self._abort_on_learning_error:
self.log.critical("Unhandled error during node learning: {}".format(failure.getTraceback()))
failure.raiseException()
else:
self.log.warning("Unhandled error during node learning: {}".format(failure.getTraceback()))