From 7d2c5216452bd5e61511dfb9d7f0e33644cc243f Mon Sep 17 00:00:00 2001 From: bennykok Date: Sun, 14 Apr 2024 15:59:19 +0800 Subject: [PATCH] chore: clean up custom node log --- custom_routes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_routes.py b/custom_routes.py index 1cdfbde..4a4ac16 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -402,14 +402,12 @@ async def get_file_hash(request): # Check if the file hash is in the cache if full_file_path in file_hash_cache: file_hash = file_hash_cache[full_file_path] - print("Cache hit") else: - print("Cache miss") start_time = time.time() file_hash = await compute_sha256_checksum(full_file_path) end_time = time.time() elapsed_time = end_time - start_time - print(f"Execution time: {elapsed_time} seconds") + print(f"Cache miss -> Execution time: {elapsed_time} seconds") # Update the in-memory cache file_hash_cache[full_file_path] = file_hash