mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
DOC: Add notice message for systemd backend when no journal match
This commit is contained in:
parent
233aa043f3
commit
a7766d3316
1 changed files with 6 additions and 0 deletions
|
|
@ -213,6 +213,12 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover
|
|||
|
||||
def run(self):
|
||||
|
||||
if not self.getJournalMatch():
|
||||
logSys.notice(
|
||||
"Jail started without 'journalmatch' set. "
|
||||
"Jail regexs will be checked against all journal entries, "
|
||||
"which is not advised for performance reasons.")
|
||||
|
||||
# Seek to now - findtime in journal
|
||||
start_time = datetime.datetime.now() - \
|
||||
datetime.timedelta(seconds=int(self.getFindTime()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue