adding print
adding prints to identify what sub script is doing.
This commit is contained in:
parent
5dbcb48093
commit
55f4764533
@ -25,12 +25,15 @@ interval = int(sys.argv[3])
|
|||||||
x = 0
|
x = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
print('Executing sub script.')
|
||||||
while x < timeout and x is not None:
|
while x < timeout and x is not None:
|
||||||
sleep(x)
|
sleep(x)
|
||||||
if kill_stream(check_session(sessionKey), interval, timeout) is not None:
|
if kill_stream(check_session(sessionKey), interval, timeout) is not None:
|
||||||
x += kill_stream(check_session(sessionKey), interval, timeout)
|
x += kill_stream(check_session(sessionKey), interval, timeout)
|
||||||
else:
|
else:
|
||||||
|
print('Exiting sub script.')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
print('Sub script initiating kill.')
|
||||||
kill_stream(check_session(sessionKey), timeout, timeout)
|
kill_stream(check_session(sessionKey), timeout, timeout)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user