1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

Merge branch 'abeloin-hotfix-nzb_api_key'

This commit is contained in:
Alexandre Beloin 2015-02-23 13:46:23 -05:00
commit 2d8aad80cd

View File

@ -59,6 +59,8 @@ class CensoredFormatter(logging.Formatter, object):
for k, v in censoredItems.items(): for k, v in censoredItems.items():
if v and len(v) > 0 and v in msg: if v and len(v) > 0 and v in msg:
msg = msg.replace(v, len(v) * '*') msg = msg.replace(v, len(v) * '*')
# Needed because Newznab apikey isn't stored as key=value in a section.
msg = re.sub('apikey\=[^\&]*\&','apikey\=**********\&', msg)
return msg return msg