Fixed PIL debug spam
This commit is contained in:
parent
a3716cf817
commit
83391f7edf
3 changed files with 10 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue