mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Don't filter PMS version in the logger
This commit is contained in:
parent
32693b6378
commit
ee7ca68f87
1 changed files with 2 additions and 2 deletions
|
@ -90,14 +90,14 @@ class PublicIPFilter(logging.Filter):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Currently only checking for ipv4 addresses
|
# Currently only checking for ipv4 addresses
|
||||||
ipv4 = re.findall(r'[0-9]+(?:\.[0-9]+){3}', record.msg)
|
ipv4 = re.findall(r'[0-9]+(?:\.[0-9]+){3}(?!\d*-[a-z0-9]{6})', record.msg)
|
||||||
for ip in ipv4:
|
for ip in ipv4:
|
||||||
if helpers.is_ip_public(ip):
|
if helpers.is_ip_public(ip):
|
||||||
record.msg = record.msg.replace(ip, ip.partition('.')[0] + '.***.***.***')
|
record.msg = record.msg.replace(ip, ip.partition('.')[0] + '.***.***.***')
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
for arg in record.args:
|
for arg in record.args:
|
||||||
ipv4 = re.findall(r'[0-9]+(?:\.[0-9]+){3}', arg) if isinstance(arg, basestring) else []
|
ipv4 = re.findall(r'[0-9]+(?:\.[0-9]+){3}(?!\d*-[a-z0-9]{6})', arg) if isinstance(arg, basestring) else []
|
||||||
for ip in ipv4:
|
for ip in ipv4:
|
||||||
if helpers.is_ip_public(ip):
|
if helpers.is_ip_public(ip):
|
||||||
arg = arg.replace(ip, ip.partition('.')[0] + '.***.***.***')
|
arg = arg.replace(ip, ip.partition('.')[0] + '.***.***.***')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue