Diversion in timeline

This commit is contained in:
Ruben van de Ven 2019-06-18 10:46:48 +02:00
parent dbcff93237
commit 4ae8c20b92

View file

@ -663,6 +663,7 @@ class Diversion(object):
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