voice-changer/server/misc/log_control.py

13 lines
354 B
Python
Raw Normal View History

2022-12-31 10:08:14 +03:00
import logging
logging.getLogger('numba').setLevel(logging.WARNING)
class UvicornSuppressFilter(logging.Filter):
def filter(self, record):
return False
logger = logging.getLogger("uvicorn.error")
logger.addFilter(UvicornSuppressFilter())
# logger.propagate = False
logger = logging.getLogger("multipart.multipart")
logger.propagate = False