mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
import logging
|
|
|
|
# logging.getLogger('numba').setLevel(logging.WARNING)
|
|
|
|
|
|
class UvicornSuppressFilter(logging.Filter):
|
|
def filter(self, record):
|
|
return False
|
|
|
|
|
|
def setup_loggers():
|
|
# logger = logging.getLogger("uvicorn.error")
|
|
# logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("fairseq.tasks.hubert_pretraining")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("fairseq.models.hubert.hubert")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("fairseq.tasks.text_to_speech")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("numba.core.ssa")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("numba.core.interpreter")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
logger = logging.getLogger("numba.core.byteflow")
|
|
logger.addFilter(UvicornSuppressFilter())
|
|
|
|
# logger.propagate = False
|
|
|
|
logger = logging.getLogger("multipart.multipart")
|
|
logger.propagate = False
|
|
|
|
logging.getLogger("asyncio").setLevel(logging.WARNING)
|