How to change severity of "UVM_ERROR: get: unable to locate hdl path"

Is there a way to change the settings before I access RAL and change it back to the normal in the code and not at command line.
Thanks.