Tweaked deprecation warnings

This commit is contained in:
Joel Collins 2020-12-01 17:39:53 +00:00
parent f2a2d880f2
commit a844efc8c8

View file

@ -172,16 +172,17 @@ class BaseCamera(metaclass=ABCMeta):
def start_worker(self, **_) -> bool: def start_worker(self, **_) -> bool:
"""Start the background camera thread if it isn't running yet.""" """Start the background camera thread if it isn't running yet."""
logging.debug( logging.warning(
"`start_worker` method has been deprecated and is no longer required. Please avoid calling this method." "`start_worker` method has been deprecated and is no longer required. Please avoid calling this method."
) )
return True return True
def get_frame(self): def get_frame(self):
"""Return the current camera frame.""" """
logging.debug( Return the current camera frame.
"`camera.get_frame` method has been deprecated. Please use `camera.stream.getframe()."
) Just an alias of self.stream.getframe()
"""
return self.stream.getframe() return self.stream.getframe()
def __enter__(self): def __enter__(self):