adding print

adding prints to identify what sub script is doing.
This commit is contained in:
blacktwin 2017-11-10 08:14:27 -05:00 committed by GitHub
parent 5dbcb48093
commit 55f4764533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: