From a9b55774ae463024854b50ba6baedd4529e9566e Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 14 Nov 2020 23:29:08 +0100 Subject: [PATCH] Add signum to signal debug print --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index f44f4de..d8a86bc 100644 --- a/main.py +++ b/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()