def setup_logger(self, host): log_helper = Log_helper(host, log_name="%s_logger" % host) backup_lock.acquire() try: log_helper.setup() finally: backup_lock.release() return log_helper
def setup_logger(self, host): log_helper = Log_helper(host, log_name="%s_logger" % host) log_helper.setup() return log_helper