mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Added apikey to censoredformatter
This is needed because Newznab apikey isn't stored as key=value in a section in config.ini.
This commit is contained in:
parent
c0eafa169f
commit
274b2718c6
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user