def log_new_download_job(request, download_job): write_to_download_log( message="Starting new download job [{}]".format( download_job.download_job_id), download_job=download_job, other_params={"request_addr": get_remote_addr(request)}, )
def log_new_download_job(request, download_job): write_to_download_log( message='Starting new download job [{}]'.format(download_job.download_job_id), download_job=download_job, other_params={'request_addr': get_remote_addr(request)} )