Deactivate warnings

Hello,

I tried to remove the logs of the warnings using the carbs settings specified in this issue How to stop printing warning level messages to console for Isaac sim? - #3 by Hammad_M However, the warning are still printed. Here is my code, what do I do wrong?

from omni.isaac.kit import SimulationApp
headless = False
simulation_app = SimulationApp({"headless": headless})  # we can also run as headless.
import logging
import carb

logging.getLogger("omni.hydra").setLevel(logging.ERROR)
logging.getLogger("omni.isaac.urdf").setLevel(logging.ERROR)
logging.getLogger("omni.physx.plugin").setLevel(logging.ERROR)

l = carb.logging.LEVEL_ERROR
carb.settings.get_settings().set("/log/level", l)
carb.settings.get_settings().set("/log/fileLogLevel", l)
carb.settings.get_settings().set("/log/outputStreamLevel", l)

# This logged error is printed as it should
carb.log_error("ERROR")
# This warning is printed but should not
carb.log_warn("WARNING")
2 Likes

@alempereur did you get it to work. I can’t get it to work either.

No I still have the problem

Hi - Sorry for the delay in the response. Let us know if you still having this issue/question with the latest Isaac Sim 2022.2.1 release.

Hi, the problem still appears.

1 Like

I still get the problem.
I use Isaac Sim 2023.1.1.

This is part of my code.

import carb

carb.settings.get_settings().set_string("/log/level", "Error")
carb.settings.get_settings().set_string("/log/fileLogLevel", "Error")
carb.settings.get_settings().set_string("/log/outputStreamLevel", "Error")
print(carb.settings.get_settings().get_settings_dictionary())

This is part of output about dictionary.

'log': {'level': 'Error', 'outputStreamLevel': 'Error', 'debugConsoleLevel': 'Warning', 'fileLogLevel': 'Error',

This output shows that the settings are changed but are not enabled.
How can I enable the settings?

Thank you.

I cannot deactivate warining with “import carb”.
But I can deactivate with command line option.

~/.local/share/ov/pkg/isaac_sim-2023.1.1/python.sh my_python_script.py --/log/level=error --/log/fileLogLevel=error --/log/outputStreamLevel=error