marker-io / marker /logger.py
Ritvik19's picture
Add all files and directories
c8a32e7
raw
history blame
No virus
396 Bytes
import logging
import warnings
def configure_logging():
logging.basicConfig(level=logging.WARNING)
logging.getLogger('pdfminer').setLevel(logging.ERROR)
logging.getLogger('PIL').setLevel(logging.ERROR)
logging.getLogger('fitz').setLevel(logging.ERROR)
logging.getLogger('ocrmypdf').setLevel(logging.ERROR)
warnings.simplefilter(action='ignore', category=FutureWarning)