gym-duckietown icon indicating copy to clipboard operation
gym-duckietown copied to clipboard

Default logging level set to INFO is too verbose

Open manfreddiaz opened this issue 5 years ago • 3 comments

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?

manfreddiaz avatar Apr 23 '19 18:04 manfreddiaz

I second that ;)

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

AI-Guru avatar Jun 01 '19 08:06 AI-Guru

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`

AI-Guru avatar Jun 01 '19 08:06 AI-Guru

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

robertmoni avatar Nov 13 '19 14:11 robertmoni