There is a driver that logs an information event every time an error occurs in a QAction.
For this to work it has a Parameter with the Alarm option : monitored>true, and the Info tag.
This also produces information messages when no alarm template is selected.
As this is an old driver (2011), I wonder if maybe this behavior has changed over time, and that maybe originally this only created information messages when an alarm template was selected, but that his behavior changed with a certain Dataminer version.
Within a Qaction, in a try/catch structure it then sets the number of the QAction that caused the exception.
Example :
It might also be useful to include what the current behavior is compared to what you were expecting
Well, personally, I would expect information events generated by the driver to only be there when an alarm template is applied, because they are defined in the same section of the XML, in the Alarm part of the parameter.
What the expected behavior was of the programmer is hard to tell, because it goes back to 2011, but I find it a bit strange that it would be done in such a way that it sends an information event every time an exception occurs in a QAction, because that could result in a very large number of information events.
That is why I thought maybe the original behavior was different, and required an alarm template to have the parameter monitored, but that over time this behavior would have changed.
From what I hear it’s possible to remove this part from the code. That’ll be the easiest solution indeed.
For what it’s worth, from the screenshots I would also expect that the information messages would only be generated when there’s an alarm template where the Info checkbox is enabled.
If you want you can raise a task to have this further investigated. If you do it’s best to include a test protocol with this behavior.
As discussed in the comments, the new requirements should be checked to have a proper implementation
Hi Filiep, can you also add the part of the code in the QAction that triggers the information to be generated?