mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
clarify a few things in logs
This commit is contained in:
parent
1f1a708388
commit
0ccf543ec1
@ -72,6 +72,10 @@ class LocalObjectDetector(ObjectDetector):
|
|||||||
logger.info("No EdgeTPU detected.")
|
logger.info("No EdgeTPU detected.")
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
|
self.logger.error("****************************************************")
|
||||||
|
self.logger.error(f"** CPU detectors are not recommended and should")
|
||||||
|
self.logger.error(f"** only be used for testing or for trial purposes.")
|
||||||
|
self.logger.error(("****************************************************"))
|
||||||
self.interpreter = tflite.Interpreter(
|
self.interpreter = tflite.Interpreter(
|
||||||
model_path="/cpu_model.tflite", num_threads=num_threads
|
model_path="/cpu_model.tflite", num_threads=num_threads
|
||||||
)
|
)
|
||||||
|
@ -216,6 +216,21 @@ class CameraWatchdog(threading.Thread):
|
|||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
if not self.capture_thread.is_alive():
|
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.logpipe.dump()
|
||||||
self.start_ffmpeg_detect()
|
self.start_ffmpeg_detect()
|
||||||
elif now - self.capture_thread.current_frame.value > 20:
|
elif now - self.capture_thread.current_frame.value > 20:
|
||||||
|
Loading…
Reference in New Issue
Block a user