From 1e44845d9a60d02e3d8a4fde5f904f84d6e3f455 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Tue, 27 Mar 2018 08:36:07 -0400 Subject: [PATCH] adding else print out for logs. --- killstream/ip_whitelist.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/killstream/ip_whitelist.py b/killstream/ip_whitelist.py index a695625..e0cf5c1 100644 --- a/killstream/ip_whitelist.py +++ b/killstream/ip_whitelist.py @@ -85,3 +85,7 @@ if ip_address not in IP_WHITELIST: user=username, title=title, ip=ip_address)) session.stop(reason=REASON.format(ip_address)) send_notification(SUBJECT_TEXT, BODY_TEXT.format(user=username, ip=ip_address, title=title)) + else: + print('User: {} is ignored from this script.'.format(username)) +else: + print('IP: {} is in whitelist, ignoring.'.format(ip_address)) \ No newline at end of file