Identify cameras in error logs for generic and mjpeg cameras (#33561)

This commit is contained in:
Eugenio Panadero authored and GitHub committed 2020-04-03 10:11:08 +02:00
1 parent ae22b5187a
commit d1c1aa518d
2 files changed
+9 -5

No files matched your search

+2 -2
View File
@@ -122,10 +122,10 @@ class MjpegCamera(Camera):
return image
except asyncio.TimeoutError:
_LOGGER.error("Timeout getting camera image")
_LOGGER.error("Timeout getting camera image from %s", self._name)
except aiohttp.ClientError as err:
_LOGGER.error("Error getting new camera image: %s", err)
_LOGGER.error("Error getting new camera image from %s: %s", self._name, err)
def camera_image(self):
"""Return a still image response from the camera."""