summaryrefslogtreecommitdiff
path: root/fail2ban/helpers.py
diff options
context:
space:
mode:
authorSteven Hiscocks <steven@hiscocks.me.uk>2014-06-10 20:38:18 +0100
committerSteven Hiscocks <steven@hiscocks.me.uk>2014-06-10 20:38:18 +0100
commit9764c78415e7776c0cffdd306e29180336ef9f35 (patch)
tree8bef68a0d759c8df50fe9c9a116ed36ddd81c7c0 /fail2ban/helpers.py
parent4fc7f1a831062e2caa2ef81d3677bff8b3a2d34a (diff)
downloadfail2ban-9764c78415e7776c0cffdd306e29180336ef9f35.tar.gz
ENH: Rename fail2ban_excepthook to excepthook
Diffstat (limited to 'fail2ban/helpers.py')
-rw-r--r--fail2ban/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py
index 2c810878..7ba8a72a 100644
--- a/fail2ban/helpers.py
+++ b/fail2ban/helpers.py
@@ -113,7 +113,7 @@ def getLogger(name):
"""
return logging.getLogger("fail2ban.%s" % name.rpartition(".")[-1])
-def fail2ban_excepthook(exctype, value, traceback):
+def excepthook(exctype, value, traceback):
"""Except hook used to log unhandled exceptions to Fail2Ban log
"""
getLogger("fail2ban").critical(