From d51b47ac676244cccb156bbd29d0e53231068330 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 22 Apr 2022 12:13:41 +0000 Subject: [PATCH] remove_files.py: Print warnings on removals This will make it easier to debug build issues happening because if this script in the future. Bug: chromium:1314527 Change-Id: I5bbb4082ac816f98860e621917bc35b26ba7cb29 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87700 Auto-Submit: Corentin Wallez Reviewed-by: Dan Sinclair Commit-Queue: Dan Sinclair --- generator/remove_files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/remove_files.py b/generator/remove_files.py index 6ddf463667..21eef8410b 100644 --- a/generator/remove_files.py +++ b/generator/remove_files.py @@ -78,6 +78,7 @@ def run(): for candidate in get_all_files_in_dir(stale_dir): if not check_is_allowed(candidate, allowed_dirs): + print("Warning: remove_files.py removed " + candidate) os.remove(candidate) # Finished! Write the stamp file so ninja knows to not run this again.