mirror of https://github.com/fail2ban/fail2ban
systemd backend: fixes missing space in message (tag `<matches>`) between timestamp and host if the message read from systemd journal;
closes gh-3293pull/3324/head
parent
fbfc85d8c0
commit
5aeb49a620
|
@ -250,7 +250,7 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover
|
||||||
logSys.log(5, "[%s] Read systemd journal entry: %s %s", self.jailName,
|
logSys.log(5, "[%s] Read systemd journal entry: %s %s", self.jailName,
|
||||||
date[0], logline)
|
date[0], logline)
|
||||||
## use the same type for 1st argument:
|
## use the same type for 1st argument:
|
||||||
return ((logline[:0], date[0], logline.replace('\n', '\\n')), date[1])
|
return ((logline[:0], date[0] + ' ', logline.replace('\n', '\\n')), date[1])
|
||||||
|
|
||||||
def seekToTime(self, date):
|
def seekToTime(self, date):
|
||||||
if isinstance(date, (int, long)):
|
if isinstance(date, (int, long)):
|
||||||
|
|
Loading…
Reference in New Issue