From 17ca61a5323757a7093d6ca7ff4a223a5bd98e4b Mon Sep 17 00:00:00 2001
From: Emanuele Aina <emanuele.aina@collabora.com>
Date: Mon, 25 Apr 2022 17:18:49 +0200
Subject: [PATCH] fetch-downstream: Log when the cached data is used

Ensure a log message is printed when loading the cache to give a clearer
context when debugging issues.

Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
---
 bin/packaging-data-fetch-downstream | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/packaging-data-fetch-downstream b/bin/packaging-data-fetch-downstream
index f78acc5..df1d52e 100755
--- a/bin/packaging-data-fetch-downstream
+++ b/bin/packaging-data-fetch-downstream
@@ -399,6 +399,7 @@ if __name__ == "__main__":
     logging.basicConfig(level=args.loglevel or logging.INFO)
 
     if args.cache:
+        logging.info(f"Loading cacheable data from {args.cache.name}")
         yaml_import = yaml.safe_load(args.cache)
         try:
             cache = yaml_import["packages"]
-- 
GitLab