Add signum to signal debug print
This commit is contained in:
parent
7501215211
commit
a9b55774ae
6
main.py
6
main.py
|
@ -37,17 +37,17 @@ class PodKeeper:
|
|||
self.waiter = threading.Event()
|
||||
|
||||
def destroy(self, signum, stackframe):
|
||||
print("Destroy signal", file=sys.stderr, flush=True)
|
||||
print("Destroy signal", signum, file=sys.stderr, flush=True)
|
||||
self.stopping.set()
|
||||
self.waiter.set()
|
||||
|
||||
def reload(self, signum, stackframe):
|
||||
print("Reload signal", file=sys.stderr, flush=True)
|
||||
print("Reload signal", signum, file=sys.stderr, flush=True)
|
||||
self.reloading.set()
|
||||
self.waiter.set()
|
||||
|
||||
def check(self, signum, stackframe):
|
||||
print("Check signal", file=sys.stderr, flush=True)
|
||||
print("Check signal", signum, file=sys.stderr, flush=True)
|
||||
self.checking.set()
|
||||
self.waiter.set()
|
||||
|
||||
|
|
Loading…
Reference in a new issue