Regular Contributor.. Regular Contributor..
Regular Contributor..

changing log runtime settings on the fly

I am running a script where I have a line that creates an error.  I can ignore this error and continue the script but I need this step because it is the only that gives me a correlated value to continue with.

I don't want to see this error in my log during runtime.  I don't want to be distracted by it and I want to investigate "real" errors when a running a scenario.

I tried using the following functions around this step with no success:

log_options = lr_get_debug_message();

            lr_set_debug_message(log_options, LR_SWITCH_OFF);

            lr_set_debug_message(LR_MSG_CLASS_DISABLE_LOG, LR_SWITCH_ON);

                lr_set_debug_message(LR_MSG_CLASS_DISABLE_LOG, LR_SWITCH_OFF);

                lr_set_debug_message(log_options, LR_SWITCH_ON);               

Anyone out there with a solution to this issue?




The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.