diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-12-05 14:04:33 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-12-05 14:04:33 +0100 |
commit | e5d8b99fe7247cc27d8890995bacff7caf8d6866 (patch) | |
tree | 4efc4e14c4a890f0af5b82cfa2b699df2ca30f08 /gsm_call_fsm.py | |
parent | 5010316fd2185fdb9ad7bf37b4b9f9ef8f874dda (diff) |
GsmCallFsm: Print current state in __str__
Diffstat (limited to 'gsm_call_fsm.py')
-rw-r--r-- | gsm_call_fsm.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |