Add signal debug print

This commit is contained in:
Benedikt Ziemons 2020-11-14 23:27:52 +01:00
parent b7e5cf97c2
commit 7501215211
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -37,14 +37,17 @@ class PodKeeper:
self.waiter = threading.Event()
def destroy(self, signum, stackframe):
print("Destroy signal", file=sys.stderr, flush=True)
self.stopping.set()
self.waiter.set()
def reload(self, signum, stackframe):
print("Reload signal", file=sys.stderr, flush=True)
self.reloading.set()
self.waiter.set()
def check(self, signum, stackframe):
print("Check signal", file=sys.stderr, flush=True)
self.checking.set()
self.waiter.set()