def METHOD_NAME(self, client, resource_group, service, app, deployment, **_):
    def get_log_url():
        try:
            log_file_url_response = client.deployments.get_log_file_url(
                resource_group_name=resource_group,
                service_name=service,
                app_name=app,
                deployment_name=deployment)
            if not log_file_url_response:
                return None
            return log_file_url_response.url
        except HttpResponseError:
            return None
    def get_logs_loop():
        log_url = None
        while not log_url or log_url == old_log_url:
            log_url = get_log_url()
            sleep(10)
        logger.warning("Trying to fetch build logs")
        stream_logs(client.deployments, resource_group, service,
                    app, deployment, logger_level_func=print)
    old_log_url = get_log_url()
    timer = Timer(3, get_logs_loop)
    timer.daemon = True
    timer.start()