Add debug to cleanup

This commit is contained in:
Joshua M. Boniface 2024-05-14 13:38:57 -04:00
parent ba3173446d
commit 7e535419d6

View file

@ -238,6 +238,8 @@ def cleanup(signum="", frame=""):
"""
global config
log.debug(f"Cleaning up after signal {signum} PID {config['current_pid']}")
with dbconn(config) as cur:
cur.execute(
f"DELETE FROM states WHERE process_id = {SQL_VAR_SIGN}",