BF: if no /dev/log on Linux -- don't expect setting syslog to work

pull/1038/head
Yaroslav Halchenko 10 years ago
parent ced4852383
commit c0e1333fe6

@ -802,7 +802,7 @@ class TransmitterLogging(TransmitterBase):
outValue=Exception('Failed to change log target'), outValue=Exception('Failed to change log target'),
repr_=True # Exceptions are not comparable apparently repr_=True # Exceptions are not comparable apparently
) )
}[platform.system() in ('Linux',)] }[platform.system() in ('Linux',) and os.path.exists('/dev/log')]
) )
def testLogLevel(self): def testLogLevel(self):

Loading…
Cancel
Save