Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Use plain formatter if no formatter is defined
transport = Transport(endpoint, port, use_ssl, preamble, config.debug_transport_events,
(config.proxy_type, config.proxy_url, config.proxy_port))
transports.append(transport)
# Default formatter is plain
if not entry_formatter:
entry_formatter = formats.get_formatter('plain', config.hostname, log_name, log_token)
else:
continue
# Default formatter is syslog
if not entry_formatter:
entry_formatter = formats.get_formatter('syslog', config.hostname, log_name, log_token)
# Instantiate the follower
follower = Follower(log_filename, entry_filter, entry_formatter, entry_identifier, transport)
followers.append(follower)
return (followers, transports)