duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
45 stars 16 forks source link

Default logging level set to INFO is too verbose #150

Open manfreddiaz opened 5 years ago

manfreddiaz commented 5 years ago

It is impossible to follow any script output as long as the default logging level for gym_duckietown logger is set to INFO.

Do we really need to have that much log output or this is just something we need for debugging AIDO evaluations?

AI-Guru commented 5 years ago

I second that ;)

There is quite some logging going on. Especially logging the position and angle.

AI-Guru commented 5 years ago

Insterestingly I did not manage to turn logging of:

logging.disable(sys.maxsize)
logger = logging.getLogger()
logger.disabled = True
logger = logging.getLogger("gym-duckietown")
logger.disabled = True
logging.disable(sys.maxsize)
logging.basicConfig(level="ERROR")

Any ideas`

robertmoni commented 4 years ago

Go to /gym-duckietown/gym_duckietown/__init__.py and change the logging level to your prfecrences. e.g.: logger.setLevel(logging.WARNING)

Logging levels:

'debug': logging.DEBUG,
 'info': logging.INFO,
 'warning': logging.WARNING,
 'error': logging.ERROR,
 'critical': logging.CRITICAL