Skip to content

Commit

Permalink
Network logging format update
Browse files Browse the repository at this point in the history
Make it a format that webtables.py can more easily re-format/manipulate.
  • Loading branch information
n0mjs710 committed Jun 28, 2017
1 parent 7fde9d1 commit c8804d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confbridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ def group_voice(self, _src_sub, _dst_group, _ts, _end, _peerid, _data):
self.call_duration = now - self.call_start
self._logger.info('(%s) GROUP VOICE END: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s Duration: %.2fs', self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group), self.call_duration)
if self._CONFIG['REPORTS']['REPORT_NETWORKS'] == 'NETWORK':
self._report.send_bridgeEvent('({}) GROUP VOICE END: CallID: {} PEER: {}, SUB: {}, TS: {}, TGID: {} Duration: {:.2f}s'.format(self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group), self.call_duration))
self._report.send_bridgeEvent('GROUP VOICE END,{},{},{},{},{},{},{:.2f}s'.format(self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group), self.call_duration))
else:
self._logger.warning('(%s) GROUP VOICE END WITHOUT MATCHING START: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s', self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group))
if self._CONFIG['REPORTS']['REPORT_NETWORKS'] == 'NETWORK':
self._report.send_bridgeEvent('(%s) GROUP VOICE END WITHOUT MATCHING START: CallID: %s PEER: %s, SUB: %s, TS: %s, TGID: %s'.format(self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group)))
self._report.send_bridgeEvent('GROUP VOICE END WITHOUT MATCHING START:,{},{},{},{},{},{}'.format(self._system, int_id(_seq_id), int_id(_peerid), int_id(_src_sub), _ts, int_id(_dst_group)))


# Iterate the rules dictionary
Expand Down

0 comments on commit c8804d7

Please sign in to comment.