Skip to contentSkip to conversation

tests/functional: Drop the "Attempting to cache ..." log text

PATCH In review Thomas Huth 2 participants 2 messages Oct 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Drop the "Attempting to cache ..." log text

From: Thomas Huth <[email protected]>

The fetch() function already either prints "Using cached asset ..." or "Downloading ... to ..." with the same file name to the log, so the "Attempting to chache ..." message does not provide any additional valuable information. Thus let's drop it to limit the length of the logging output to a more reasonable size.

---
 tests/functional/qemu_test/asset.py | 1 -
 1 file changed, 1 deletion(-)
tests/functional/qemu_test/asset.py +0 -1
index 2971a989d1e..f666125bfaf 100644
@@ -225,7 +225,6 @@ def precache_test(test):
         log.addHandler(handler)
         for name, asset in vars(test.__class__).items():
             if name.startswith("ASSET_") and type(asset) == Asset:
-                log.info("Attempting to cache '%s'" % asset)
                 try:
                     asset.fetch()
                 except AssetError as e:
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Thomas Huth

From: Thomas Huth <[email protected]>

The fetch() function already either prints "Using cached asset ..." or "Downloading ... to ..." with the same file name to the log, so the "Attempting to chache ..." message does not provide any

                         ^^^^ cache
Quoted 7 lines

additional valuable information. Thus let's drop it to limit the length of the logging output to a more reasonable size.

---
 tests/functional/qemu_test/asset.py | 1 -
 1 file changed, 1 deletion(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|