diff --git a/cache.py b/cache.py index 531f5b7..6265ec9 100644 --- a/cache.py +++ b/cache.py @@ -33,7 +33,7 @@ def file_cache(ttl=3600): with open(cache_file, "w") as f: json.dump({"timestamp": time(), "result": result}, f) except Exception as e: - print(f"Error during cache refresh: {e}",flush=True) + print(f"Error during cache refresh of {cache_file} (Name: {func.__name__}): {e}") threading.Thread(target=refresh_loop).start()