##// END OF EJS Templates
logging: updated logging information on IP checks.
marcink -
r2820:ad54bfc4 default
parent child Browse files
Show More
@@ -1235,11 +1235,12 b' class AuthUser(object):'
1235 allowed_ips = AuthUser.get_allowed_ips(
1235 allowed_ips = AuthUser.get_allowed_ips(
1236 user_id, cache=True, inherit_from_default=inherit_from_default)
1236 user_id, cache=True, inherit_from_default=inherit_from_default)
1237 if check_ip_access(source_ip=ip_addr, allowed_ips=allowed_ips):
1237 if check_ip_access(source_ip=ip_addr, allowed_ips=allowed_ips):
1238 log.debug('IP:%s is in range of %s' % (ip_addr, allowed_ips))
1238 log.debug('IP:%s for user %s is in range of %s' % (
1239 ip_addr, user_id, allowed_ips))
1239 return True
1240 return True
1240 else:
1241 else:
1241 log.info('Access for IP:%s forbidden, '
1242 log.info('Access for IP:%s forbidden for user %s, '
1242 'not in %s' % (ip_addr, allowed_ips))
1243 'not in %s' % (ip_addr, user_id, allowed_ips))
1243 return False
1244 return False
1244
1245
1245 def __repr__(self):
1246 def __repr__(self):
General Comments 0
You need to be logged in to leave comments. Login now