diff options
author | sebres <serg.brester@sebres.de> | 2017-03-27 11:27:41 +0200 |
---|---|---|
committer | sebres <serg.brester@sebres.de> | 2017-03-27 11:27:41 +0200 |
commit | e8596cfce755080baee24ceda500b7deb81cb11a (patch) | |
tree | 515fdee3268ce5e4331cfa679a6c291e5a8fee9d /fail2ban/__init__.py | |
parent | 52c19503715ac5e21aa98e5cc6bfcfd36c9acda3 (diff) | |
download | fail2ban-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__.py | 2 |
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') |