mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
revise log messages
This commit is contained in:
parent
eed8463832
commit
26a3491466
@ -31,8 +31,8 @@ class FrigateWatchdog(threading.Thread):
|
|||||||
detection_start = detector.detection_start.value
|
detection_start = detector.detection_start.value
|
||||||
if (detection_start > 0.0 and
|
if (detection_start > 0.0 and
|
||||||
now - detection_start > 10):
|
now - detection_start > 10):
|
||||||
logger.info("Detection appears to be stuck. Restarting detection process")
|
logger.info("Detection appears to be stuck. Restarting detection process...")
|
||||||
detector.start_or_restart()
|
detector.start_or_restart()
|
||||||
elif not detector.detect_process.is_alive():
|
elif not detector.detect_process.is_alive():
|
||||||
logger.info("Detection appears to have stopped. Restarting frigate")
|
logger.info("Detection appears to have stopped. Exiting frigate...")
|
||||||
os.kill(os.getpid(), signal.SIGTERM)
|
os.kill(os.getpid(), signal.SIGTERM)
|
||||||
|
Loading…
Reference in New Issue
Block a user