clarify a few things in logs

This commit is contained in:
Blake Blackshear
2021-08-14 14:04:00 -05:00
parent 1f1a708388
commit 0ccf543ec1
2 changed files with 19 additions and 0 deletions

View File

@@ -216,6 +216,21 @@ class CameraWatchdog(threading.Thread):
now = datetime.datetime.now().timestamp()
if not self.capture_thread.is_alive():
self.logger.error(
"***********************************************************************"
)
self.logger.error(
f"** FFMPEG process crashed unexpectedly for {self.camera_name}."
)
self.logger.error(
f"** The following ffmpeg logs include the last 100 lines prior to exit."
)
self.logger.error(
f"** You may have invalid args defined for this camera."
)
self.logger.error(
"***********************************************************************"
)
self.logpipe.dump()
self.start_ffmpeg_detect()
elif now - self.capture_thread.current_frame.value > 20: