mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: if no /dev/log on Linux -- don't expect setting syslog to work
This commit is contained in:
parent
ced4852383
commit
c0e1333fe6
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ class TransmitterLogging(TransmitterBase):
|
|||
outValue=Exception('Failed to change log target'),
|
||||
repr_=True # Exceptions are not comparable apparently
|
||||
)
|
||||
}[platform.system() in ('Linux',)]
|
||||
}[platform.system() in ('Linux',) and os.path.exists('/dev/log')]
|
||||
)
|
||||
|
||||
def testLogLevel(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue