Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, program_name=None,
formatter=formatter.TEXT_FORMATTER, level=None):
program_name = program_name or get_program_name
super(Journal, self).__init__(handlers.JournalHandler(program_name),
formatter, level)
def __init__(self, program_name):
if not journal:
raise RuntimeError("Systemd bindings do not exist")
super(JournalHandler, self).__init__()
self.program_name = program_name