Skip to content

Commit ad0e559

Browse files
committed
Add warning for when we don't update filestore when hash and size same
1 parent 2427ba4 commit ad0e559

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hdx/api/utilities/filestore_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def dataset_update_filestore_resource(
112112
if size == original_resource_data.get(
113113
"size"
114114
) and hash == original_resource_data.get("hash"):
115-
logger.info(
115+
logger.warning(
116116
f"Updating metadata not filestore for resource {original_resource_data['name']} as size and hash are unchanged!"
117117
)
118118
if resource_data_to_update._url_backup:

src/hdx/data/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def _resource_merge_hdx_update(
412412
file_format = self._old_data.get("format", "").lower()
413413
size, hash = get_size_and_hash(self._file_to_upload, file_format)
414414
if size == self.data.get("size") and hash == self.data.get("hash"):
415-
logger.info(
415+
logger.warning(
416416
f"Updating metadata not filestore for resource {self.data['name']} as size and hash are unchanged!"
417417
)
418418
if self._url_backup:

0 commit comments

Comments
 (0)