[Django]-How can I avoid "Using selector: EpollSelector" log message in Django?

40👍

This message is from the asyncio library that comes with Python 3. You can configure its logging by modifying the LOGGING configuration:

LOGGING = {
    'version': 1,
    'loggers': {
        'asyncio': {
            'level': 'WARNING',
        },
    },
}

If you’re not using Django, you can use this line of code:

import logging
logging.getLogger('asyncio').setLevel(logging.WARNING)
👤Flimm

Leave a comment