GsmCallFsm: Print current state in __str__

changes/71/1971/1
Harald Welte 7 years ago
parent 5010316fd2
commit e5d8b99fe7
  1. 2
      gsm_call_fsm.py

@ -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

Loading…
Cancel
Save