Skip to content

Commit

Permalink
debug: add logging for mtime cache
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde committed Dec 13, 2023
1 parent 0aa0d97 commit 98498f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/patches-mtime-cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def generate_cache(patches_config):
"mtime": os.path.getmtime(file_path),
}

print("Returning the mtime_cache")
return mtime_cache


Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -177,6 +179,7 @@ def main():

set_mtimes(json.load(args.patches_config), args.mtime)

print("Done with patches-mtime-cache.py")
return 0


Expand Down

0 comments on commit 98498f4

Please sign in to comment.