From e5d8b99fe7247cc27d8890995bacff7caf8d6866 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 5 Dec 2015 14:04:33 +0100 Subject: GsmCallFsm: Print current state in __str__ --- gsm_call_fsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsm_call_fsm.py b/gsm_call_fsm.py index 644a784..97e1756 100644 --- a/gsm_call_fsm.py +++ b/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 -- cgit v1.2.3