From 55f4764533fa9431d9bd2b8f24967b028d210190 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 10 Nov 2017 08:14:27 -0500 Subject: [PATCH] adding print adding prints to identify what sub script is doing. --- killstream/wait_kill_pause_notify_sub.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/killstream/wait_kill_pause_notify_sub.py b/killstream/wait_kill_pause_notify_sub.py index c9ebcbc..7c875ef 100644 --- a/killstream/wait_kill_pause_notify_sub.py +++ b/killstream/wait_kill_pause_notify_sub.py @@ -25,12 +25,15 @@ interval = int(sys.argv[3]) x = 0 try: + print('Executing sub script.') while x < timeout and x is not None: sleep(x) if kill_stream(check_session(sessionKey), interval, timeout) is not None: x += kill_stream(check_session(sessionKey), interval, timeout) else: + print('Exiting sub script.') exit(0) + print('Sub script initiating kill.') kill_stream(check_session(sessionKey), timeout, timeout) except Exception as e: