Good morning,
I am working on a gateway with possibly 20 clients that should be all configured the same. I have updates set to auto push. I use a lot of diagnostic messages in my scripts like:
backend.messageHandler('backend', 'info', 'Echo - BB')
I’ve noticed that when I comment out such messages and save changes to the gateway I’ll still get some messages appearing in my gateway. Is it possible my changes aren’t reaching all the clients? How would I figure out which client is causing me trouble?
Here is messageHandler for reference.
def messageHandler(loggerName, level, message):
try:
project = system.tag.read('[System]Client/System/ProjectName').value
messageHandler = 'myMessageHandler'
scope = 'CG'
myDict = {'loggerName': loggerName, 'level': level, 'message': message}
results = system.util.sendMessage(project, messageHandler, myDict, scope)
#--------------------ERROR HANDLING--------------------
except java.lang.Exception:
messageHandlerFailures = system.tag.read('[System]General/messageHandlerFailures').value
messageHandlerFailures = messageHandlerFailures + 1
system.tag.write('[System]General/messageHandlerFailures', messageHandlerFailures)
except Exception:
messageHandlerFailures = system.tag.read('[System]General/messageHandlerFailures').value
messageHandlerFailures = messageHandlerFailures + 1
system.tag.write('[System]General/messageHandlerFailures', messageHandlerFailures)
#--------------------ERROR HANDLING--------------------