summaryrefslogtreecommitdiff
path: root/fail2ban/__init__.py
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2017-03-27 11:27:41 +0200
committersebres <serg.brester@sebres.de>2017-03-27 11:27:41 +0200
commite8596cfce755080baee24ceda500b7deb81cb11a (patch)
tree515fdee3268ce5e4331cfa679a6c291e5a8fee9d /fail2ban/__init__.py
parent52c19503715ac5e21aa98e5cc6bfcfd36c9acda3 (diff)
downloadfail2ban-e8596cfce755080baee24ceda500b7deb81cb11a.tar.gz
amend resp. restore of change from 59c35bc44a175a672e084bc30511dfa3436ff052 (gh-129):
- logging of "Log rotation detected" with new MSG level - introduces new log-level MSG (as INFO-2, 18)
Diffstat (limited to 'fail2ban/__init__.py')
-rw-r--r--fail2ban/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py
index cd92dbab..7c752e24 100644
--- a/fail2ban/__init__.py
+++ b/fail2ban/__init__.py
@@ -34,7 +34,9 @@ Below derived from:
https://mail.python.org/pipermail/tutor/2007-August/056243.html
"""
+logging.MSG = logging.INFO - 2
logging.NOTICE = logging.INFO + 5
+logging.addLevelName(logging.MSG, 'MSG')
logging.addLevelName(logging.NOTICE, 'NOTICE')