From 86a42b27d86dfab1ba8ff074ddce766cfbf1b673 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 13 Aug 2015 21:26:23 -0500 Subject: [PATCH] debug, don't use --- play_group.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/play_group.py b/play_group.py index f324a85..42030ae 100755 --- a/play_group.py +++ b/play_group.py @@ -68,7 +68,7 @@ class playIPSC(IPSC): # def group_voice(self, _network, _src_sub, _dst_group, _ts, _end, _peerid, _data): if _end: - logger.info('(%s) End Voice Call. SRC SUB %s, TS %s, DST GROUP %s, PEER %s', _network, int_id(_src_sub), _ts+1, int_id(_dst_group), int_id(_peerid)) + logger.info('(%s) End Voice Call. SourceID %s, TS %s, TGID %s, PeerID %s', _network, int_id(_src_sub), _ts+1, int_id(_dst_group), int_id(_peerid)) _self_peer = NETWORK[_network]['LOCAL']['RADIO_ID'] _self_src = _self_peer[1:] @@ -83,14 +83,14 @@ class playIPSC(IPSC): if (_ts == 0 and _dst_group in trigger_groups_1) or (_ts == 1 and _dst_group in trigger_groups_2): return - logger.info('(Event ID: %s) Playback triggered from TS %s, TGID %s', self.event_id, (_ts +1), int_id(_dst_group)) + logger.info('(%s) Event ID: %s - Playback triggered from SourceID %s, TS %s, TGID %s, PeerID %s', _network, self.event_id, int_id(_src_sub), _ts+1, int_id(_dst_group), int_id(_peerid)) # Determine the type of voice packet this is (see top of file for possible types) _burst_data_type = _data[30] time.sleep(2) self.CALL_DATA = pickle.load(open(filename, 'rb')) - logger.info('(Event ID: %s) Playing back file: %s', self.event_id, filename) + logger.info('(%s) Event ID: %s - Playing back file: %s', _network, self.event_id, filename) for i in self.CALL_DATA: _tmp_data = i @@ -126,7 +126,7 @@ class playIPSC(IPSC): self.send_to_ipsc(_tmp_data) time.sleep(0.06) self.CALL_DATA = [] - logger.info('(Event ID: %s) Playback Completed', self.event_id) + logger.info('(%s) Event ID: %s - Playback Completed', _network, self.event_id) self.event_id = self.event_id + 1 if __name__ == '__main__':