diff --git a/CHANGELOG.md b/CHANGELOG.md index a397f95cb17..3e952ffcf20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,8 +17,9 @@ - Fixed download of multi episode releases without single results ([#6537](https://github.com/pymedusa/Medusa/pull/6537)) - Fixed "send to trash" option not doing anything (Python 3.6 and higher) ([#6625](https://github.com/pymedusa/Medusa/pull/6625)) - Fixed setting episodes to archived in backlog overview ([#6636](https://github.com/pymedusa/Medusa/pull/6636)) -- Fixed exception in Elte-Tracker provider when no result is found ([#6680](https://github.com/pymedusa/Medusa/pull/6680)) +- Fixed exception in Elite-Tracker provider when no result is found ([#6680](https://github.com/pymedusa/Medusa/pull/6680)) - Fixed exception in API v2 when an incorrect API key was provided, or none was provided ([#6703](https://github.com/pymedusa/Medusa/pull/6703)) +- Removed legacy log-censoring code for Newznab providers ([#6705](https://github.com/pymedusa/Medusa/pull/6705)) ## 0.3.1 (2019-03-20) diff --git a/medusa/logger/__init__.py b/medusa/logger/__init__.py index 365d4dd45a0..0c2b41e2df1 100644 --- a/medusa/logger/__init__.py +++ b/medusa/logger/__init__.py @@ -576,9 +576,6 @@ class CensoredFormatter(logging.Formatter, object): absurd_re = re.compile(r'[\d\w]') - # Needed because Newznab apikey isn't stored as key=value in a section. - apikey_re = re.compile(r'(?P[&?]r|[&?]apikey|[&?]api_key)(?:=|%3D)([^&]*)(?P[&\w]?)', re.IGNORECASE) - def __init__(self, fmt=None, datefmt=None, encoding='utf-8'): """Constructor.""" super(CensoredFormatter, self).__init__(fmt, datefmt) @@ -615,8 +612,6 @@ def format(self, record): for item in censored: msg = msg.replace(item, '**********') # must not give any hint about the length - msg = self.apikey_re.sub(r'\g=**********\g', msg) - level = record.levelno if level in (WARNING, ERROR): logline = LogLine.from_line(msg)