Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

django

I upgrade to Django 3.0, and I have been seeing this message in the logs printed to console. How can I avoid it?

Using selector: EpollSelector
like image 735
Flimm Avatar asked Mar 03 '20 09:03

Flimm


1 Answers

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)
like image 160
Flimm Avatar answered Oct 10 '22 04:10

Flimm