diff --git a/hugvey/story.py b/hugvey/story.py index 01c56db..8066e34 100644 --- a/hugvey/story.py +++ b/hugvey/story.py @@ -661,8 +661,9 @@ class Diversion(object): if self.type != 'repeat' and self.type !='interrupt': # repeat diversion should be usable infinte times self.hasHit = True - + story.addToLog(self) + story.hugvey.eventLogger.info(f"diverge {self.id}") return r def createReturnDirectionsTo(self, story, startMsg, returnMsg, originalDirection = None, inheritTiming = True, timeoutDuration = .5, replyContainsDurations = None): @@ -753,6 +754,7 @@ class Diversion(object): Only used if the Diversion sets the story.currentDiversion """ story.logger.info("end of diversion") + story.hugvey.eventLogger.info(f"return from {self.id}") if not self.finaliseMethod: story.logger.info(f"No finalisation for diversion {self.id}") story.currentDiversion = None