Fixed PIL debug spam

This commit is contained in:
jtc42 2019-11-19 21:40:20 +00:00
parent a3716cf817
commit 83391f7edf
3 changed files with 10 additions and 3 deletions

View file

@ -19,6 +19,13 @@ from typing import Tuple
from openflexure_microscope.camera.base import BaseCamera
"""
PIL spams the logger with debug-level information. This is a pain when debugging api.app.
We override the logging settings in api.app by setting a level for PIL here.
"""
pil_logger = logging.getLogger('PIL')
pil_logger.setLevel(logging.INFO)
# MAIN CLASS
class MockStreamer(BaseCamera):
def __init__(self):