Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
raise TypeError('syslog facility must be one of: %s' %
', '.join("'%s'" % fac
for fac in valid_facilities))
return getattr(syslog, facility)
preconfigured = {
'stderr': STDERR,
'stdout': STDOUT,
}
if syslog is not None:
preconfigured['syslog'] = Syslog()
if handlers.journal is not None:
preconfigured['journal'] = Journal()