GsmCallFsm: Print current state in __str__

This commit is contained in:
Harald Welte 2015-12-05 14:04:33 +01:00
parent 5010316fd2
commit e5d8b99fe7
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class GsmCallFsm(pykka.ThreadingActor):
last_callref = 0
def __str__(self):
return 'GsmCallFsm(%u/%s->%s)' % (self.callref, self.calling, self.called)
return 'GsmCallFsm(%u/%s->%s/%s)' % (self.callref, self.calling, self.called, self.fsm.current)
def _get_next_callref(self):
GsmCallFsm.last_callref = GsmCallFsm.last_callref + 1