mirror of https://github.com/fail2ban/fail2ban
BF: if no /dev/log on Linux -- don't expect setting syslog to work
parent
ced4852383
commit
c0e1333fe6
|
@ -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 New Issue