Hi there,
I have two kinds of string that could be given to my function:
23:46 PART SET K22
07:02 UNSET USR027 ABC M22 L3.6
I want to be able to find events from these strings with my script.
(eg logList = [“UNSET”, “PART SET”, “SET”, “KSW SET”, “KSW UNSET”, “ABORT SET”, “BEGIN SET”])
if(line in emailList):
DEBUG("EMAIL THIS",2)
decipher_act(line, 1)
#######
for i in range(len(emailList)):
if emailList[i] in line:
decipher_act(line,1)
break
Both do not trigger the function or DEBUG.
One problem I can foresee is that there might be times where two strings have partially same contents, like UNSET and KSW UNSET.