Remove no longer used util.listen function

py-spy dump --pid <pid> makes for a nice alternative we don't have to maintain. Plus it can show local variables.
This commit is contained in:
George Tsiamasiotis 2024-10-02 13:05:25 +03:00
parent 3987d09550
commit 2e432601b6

View File

@ -7,7 +7,6 @@ import os
import re
import signal
import subprocess as sp
import traceback
from typing import Optional
import cv2
@ -36,14 +35,6 @@ def restart_frigate():
os.kill(os.getpid(), signal.SIGINT)
def print_stack(sig, frame):
traceback.print_stack(frame)
def listen():
signal.signal(signal.SIGUSR1, print_stack)
def get_cgroups_version() -> str:
"""Determine what version of cgroups is enabled."""