From 98498f4ab4e1b69f04e8ea394713ca01931b0f2f Mon Sep 17 00:00:00 2001 From: VerteDinde Date: Tue, 12 Dec 2023 21:55:25 -0800 Subject: [PATCH] debug: add logging for mtime cache --- script/patches-mtime-cache.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/patches-mtime-cache.py b/script/patches-mtime-cache.py index 2f515ed62c605..97707bdbea072 100644 --- a/script/patches-mtime-cache.py +++ b/script/patches-mtime-cache.py @@ -38,6 +38,7 @@ def generate_cache(patches_config): "mtime": os.path.getmtime(file_path), } + print("Returning the mtime_cache") return mtime_cache @@ -139,6 +140,7 @@ def main(): try: with open(args.cache_file, mode="w") as f: mtime_cache = generate_cache(json.load(args.patches_config)) + print("Generated mtime cache for patches") json.dump(mtime_cache, f, indent=2) except Exception: print( @@ -177,6 +179,7 @@ def main(): set_mtimes(json.load(args.patches_config), args.mtime) + print("Done with patches-mtime-cache.py") return 0