"docs/source/vscode:/vscode.git/clone" did not exist on "0a064dc0fcba31092868f911772df087901d90fb"
Unverified Commit 767939af authored by Hirokazu Kiyomaru's avatar Hirokazu Kiyomaru Committed by GitHub
Browse files

Use `logger.info` instead of `print` to emit a logging message in `hub.py` (#21273)

use logger.info() instead of print() to emit a debug message
parent 67316444
...@@ -1043,7 +1043,7 @@ def move_cache(cache_dir=None, new_cache_dir=None, token=None): ...@@ -1043,7 +1043,7 @@ def move_cache(cache_dir=None, new_cache_dir=None, token=None):
if token is None: if token is None:
token = HfFolder.get_token() token = HfFolder.get_token()
cached_files = get_all_cached_files(cache_dir=cache_dir) cached_files = get_all_cached_files(cache_dir=cache_dir)
print(f"Moving {len(cached_files)} files to the new cache system") logger.info(f"Moving {len(cached_files)} files to the new cache system")
hub_metadata = {} hub_metadata = {}
for file_info in tqdm(cached_files): for file_info in tqdm(cached_files):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment