There are so many warnings, the message is way too long. It’s making it hard for me to debug my own code. How do I suppress warnings.
You can use these commandline arguments/ carb settings to force the log level to be error
--/log/level=error --/log/fileLogLevel=error --/log/outputStreamLevel=error
I’m using hydra for command line args. These args would be treated as hydra args which ends spitting out an error. Carb ends up taking Debug level log info from boto3 and outputs that to standard out as well. Would be helpful to control carb log level inside python.
Any fix in sight for this?
Hi @Sid-ESR
In this case, to avoid conflict with hydra, you can define the log levels in the experience files (e.g.: apps/omni.isaac.sim.python.kit
file in the Isaac Sim root folder)
[settings]
log.level = "error"
log.fileLogLevel = "error"
log.outputStreamLevel = "error"
@toni.nv Thanks for the suggestion. Turns out the root cause was the hydra logging which is
using python logging and setting log level to DEBUG
behind the scenes.
Modififying hydra logging has been described in the URL shared below.
My custom logger looks something like this
version: 1
formatters:
simple:
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: simple
stream: ext://sys.stdout
root:
level: WARNING
handlers: [console]
loggers:
boto3:
level: WARNING
handlers: [console]
botocore:
level: WARNING
handlers: [console]
s3transfer:
level: WARNING
handlers: [console]
matplotlib:
level: WARNING
handlers: [console]
disable_existing_loggers: false