refresh_links_for_backend: more consistent messages
This commit is contained in:
parent
9aa11e47c5
commit
2124e4335d
@ -490,7 +490,7 @@ def refresh_links_for_backend(backend_name, chunk_size, expiry_seconds):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if 'file_path' not in file_doc:
|
if 'file_path' not in file_doc:
|
||||||
log.warning("File %s malformed: missing 'file_path' property.", file_id)
|
log.warning("Skipping file %s, missing 'file_path' property.", file_id)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
log.debug('Refreshing links for file %s', file_id)
|
log.debug('Refreshing links for file %s', file_id)
|
||||||
@ -498,8 +498,8 @@ def refresh_links_for_backend(backend_name, chunk_size, expiry_seconds):
|
|||||||
try:
|
try:
|
||||||
_generate_all_links(file_doc, now)
|
_generate_all_links(file_doc, now)
|
||||||
except gcloud.exceptions.Forbidden:
|
except gcloud.exceptions.Forbidden:
|
||||||
log.warning('GCS forbids us access to project %s bucket for file %s.',
|
log.warning('Skipping file %s, GCS forbids us access to project %s bucket.',
|
||||||
project_id, file_id)
|
file_id, project_id)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
refreshed += 1
|
refreshed += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user