Hiya
Is there a way to disable ranorex automatically writing exception details to the log file ?
Regards
Disable exceptions to log file
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Disable exceptions to log file
Ranorex does not automatically write exception details to the log file. However, the default code template catches all exceptions and calls Report.Error to log the exception. To disable that behavior, just comment the Report.Error lines in the exception handlers:atom wrote:Is there a way to disable ranorex automatically writing exception details to the log file ?
try { //TODO: Code here - for example: Recording1.Start(); } catch (RanorexException e) { // comment the following two lines! // Report.Error(e.ToString()); // Report.Screenshot(); error = -1; }Regards,
Alex
Ranorex Support Team