def handle_log(self, job, upload_remote=True):
    for f in job.log:
        if (not f.exists_local):
            f.touch_or_create()
        if (upload_remote and f.is_remote and (not f.should_stay_on_remote)):
            f.upload_to_remote()
            if (not f.exists_remote):
                raise RemoteFileException('The file upload was attempted, but it does not exist on remote. Check that your credentials have read AND write permissions.')
def handle_log(self, job, upload_remote=True):
    for f in job.log:
        if (not f.exists_local):
            f.touch_or_create()
        if (upload_remote and f.is_remote and (not f.should_stay_on_remote)):
            f.upload_to_remote()
            if (not f.exists_remote):
                raise RemoteFileException('The file upload was attempted, but it does not exist on remote. Check that your credentials have read AND write permissions.')