From b944fba8cfc57bdbb6ccd17264d8a8580871d676 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 21 Feb 2020 15:51:18 -0500 Subject: [PATCH] 2020-02-21 Fred Gleason * Added a syslog message for each CIC update in the 'pypad_xds.py' script. --- ChangeLog | 3 +++ apis/pypad/scripts/pypad_xds.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 38b97c69..e44e0800 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19250,3 +19250,6 @@ whitespace to be generated in the 'EXT_DATA', 'EXT_EVENT', 'EXT_ANNC_TYPE' and 'EXT_CART_NAME' log fields when importing from a CounterPoint format log. +2020-02-21 Fred Gleason + * Added a syslog message for each CIC update in the 'pypad_xds.py' + script. diff --git a/apis/pypad/scripts/pypad_xds.py b/apis/pypad/scripts/pypad_xds.py index 0bfff149..9393b147 100755 --- a/apis/pypad/scripts/pypad_xds.py +++ b/apis/pypad/scripts/pypad_xds.py @@ -4,7 +4,7 @@ # # Send CICs via UDP or serial # -# (C) Copyright 2018-2019 Fred Gleason +# (C) Copyright 2018-2020 Fred Gleason # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -24,6 +24,7 @@ import sys import socket import configparser import serial +import syslog import pypad def eprint(*args,**kwargs): @@ -65,6 +66,7 @@ def ProcessPad(update): while(update.config().has_section(section)): if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW) and update.hasService(): packet='0:'+update.serviceProgramCode()+':'+update.config().get(section,'IsciPrefix')+FilterField(update.padField(pypad.TYPE_NOW,pypad.FIELD_EXTERNAL_EVENT_ID))+':*' + update.syslog(syslog.LOG_INFO,'sending CIC update "'+packet+'"') try: # # Use serial output