report processor name in error logs

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-13 09:36:01 -07:00
parent befb8db120
commit 099e65f3b6
14 changed files with 25 additions and 24 deletions

View File

@@ -201,7 +201,7 @@ class BaseOutputTransport(FrameProcessor):
except queue.Empty:
pass
except BaseException as e:
logger.error(f"Error processing sink queue: {e}")
logger.error(f"{self} error processing sink queue: {e}")
#
# Push frames task
@@ -270,7 +270,7 @@ class BaseOutputTransport(FrameProcessor):
except queue.Empty:
pass
except Exception as e:
logger.error(f"Error writing to camera: {e}")
logger.error(f"{self} error writing to camera: {e}")
#
# Audio out
@@ -286,5 +286,5 @@ class BaseOutputTransport(FrameProcessor):
buffer = buffer[self._audio_chunk_size:]
return buffer
except BaseException as e:
logger.error(f"Error writing audio frames: {e}")
logger.error(f"{self} error writing audio frames: {e}")
return buffer