Skip to content

Commit ca7342d

Browse files
Migrate to logger.warning usage (#3056)
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent df9f47b commit ca7342d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/huggingface_hub/_upload_large_folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def target_chunk(self) -> int:
209209
def update_chunk(self, success: bool, nb_items: int, duration: float) -> None:
210210
with self._chunk_lock:
211211
if not success:
212-
logger.warn(f"Failed to commit {nb_items} files at once. Will retry with less files in next batch.")
212+
logger.warning(f"Failed to commit {nb_items} files at once. Will retry with less files in next batch.")
213213
self._chunk_idx -= 1
214214
elif nb_items >= COMMIT_SIZE_SCALE[self._chunk_idx] and duration < 40:
215215
logger.info(f"Successfully committed {nb_items} at once. Increasing the limit for next batch.")

0 commit comments

Comments
 (0)