123
124
"""Derived from the Avahi example code"""
124
125
if self.rename_count >= self.max_renames:
125
126
logger.critical(u"No suitable service name found after %i"
126
127
u" retries, exiting.", rename_count)
127
128
raise AvahiServiceError("Too many renames")
130
131
syslogger.setFormatter(logging.Formatter\
131
132
('Mandos (%s): %%(levelname)s:'