We are getting the below unwanted error entries in Runtime Log. Though they are not related to any application issues, they will generate a bunch of service desk tickets for one of our clients which is cumbersome to clean up.
I have tried and even a bare minimum robotics project seems to generate the below errors in log.
Can you let me know how to get rid of those issues. Thanks!
Error | 08:14:54.194 AM | 1 | STA | AutomationBroker | | | AutomationBrokerServicesFactory not found
Error | 08:14:54.853 AM | 4 | MTA | ApplicationFramework | | | Error parsing StartMyDay section of RuntimeConfig. 'FileLocation' section has missing or empty 'value' attribute.
Error | 08:14:55.116 AM | 4 | MTA | Runtime Application | | | Error reading Shutdown setting. Unexpected Setting: ''
But still, the logs that I am concerned about are error logs. How would I stop them from showing up? I am thinking it might be something related to the way the project is setup? For example, if we take the AutomationBroker not found log, how do I suppress it? Why does that Broken even matter when I am not using that? Same goes with rest of the logs (like StartMyDay etc.,)
Posted: 5 years ago
Posted: 25 Sep 2018 0:30 EDT
Raveendra Mothukuri (Raveendra)
In the RuntimeConfig you may control the LogLevel by the Category as mentioned earlier. If you set the LogLevel to 0 for the categories that you want to suppress they should not log.
For the errors you are seeing, do you have the AutomationBroker Factory in your solution? If so, you should be able to remove it or disable it. The second error relates to the StartMyDay setting in your RuntimeConfig. Update the FileLocation key and that should go away. The third one would require looking at your solution and how shutdown is happening.
Lastly, items with the Error MsgType are not what I would generate tickets from. Exceptions are real issues that require attention. Error is a classification that is used throughout the product to ensure you have visibility to these issues with reduced logging. This is not an indication that there is an issue with your solution by default.
Posted: 5 years ago
Posted: 25 Sep 2018 13:20 EDT
Tarun Kumar Reddy Bolla (Tarun Bolla)
Lead System Architect
I guess I need to research a bit on the AutomatonBroker to know how to disable it. And also, I could disable StartMyDay in RuntimeConfig and see if that gets rid of the error log. And regarding the shutdown log, its generated when runtime is terminated via the "TerminateRuntime" method of RuntimeHost.
I will also look into what all categories I could disable from logging to avoid clutter. Also, unfortunately, our client has lots of applications logging into EventLog and they treat an "Error" as something that needs attention. I would check and see if they could set up some bypass rules for known "Error" logs if they can not be stopped from being logged.