diff --git a/fail2ban/client/fail2bancmdline.py b/fail2ban/client/fail2bancmdline.py index c2f6d0be..62008288 100644 --- a/fail2ban/client/fail2bancmdline.py +++ b/fail2ban/client/fail2bancmdline.py @@ -27,7 +27,7 @@ import sys from ..version import version, normVersion from ..protocol import printFormatted -from ..helpers import getLogger, str2LogLevel, getVerbosityFormat, BrokenPipeError +from ..helpers import getLogger, str2LogLevel, getVerbosityFormat # Gets the instance of the logger. logSys = getLogger("fail2ban") diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py index b864fd15..fe62ae1e 100644 --- a/fail2ban/helpers.py +++ b/fail2ban/helpers.py @@ -183,8 +183,6 @@ def __stopOnIOError(logSys=None, logHndlr=None): # pragma: no cover pass sys.exit(0) -BrokenPipeError = BrokenPipeError - __origLog = logging.Logger._log def __safeLog(self, level, msg, args, **kwargs): """Safe log inject to avoid possible errors by unsafe log-handlers,