adding else print out for logs.
This commit is contained in:
parent
9c461dbe43
commit
1e44845d9a
@ -85,3 +85,7 @@ if ip_address not in IP_WHITELIST:
|
|||||||
user=username, title=title, ip=ip_address))
|
user=username, title=title, ip=ip_address))
|
||||||
session.stop(reason=REASON.format(ip_address))
|
session.stop(reason=REASON.format(ip_address))
|
||||||
send_notification(SUBJECT_TEXT, BODY_TEXT.format(user=username, ip=ip_address, title=title))
|
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))
|
Loading…
Reference in New Issue
Block a user