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):
if token is None:
token = HfFolder.get_token()
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 = {}
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