From f708ebe6cb12702d4ac3f7b38a09c6ed7a683ae3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Tue, 28 Mar 2023 12:08:08 +0200
Subject: [PATCH] Improve logging for compress.py

---
 templates/common/compress.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/common/compress.py b/templates/common/compress.py
index 996370c..bfb40a5 100644
--- a/templates/common/compress.py
+++ b/templates/common/compress.py
@@ -2,6 +2,7 @@ import glob
 import logging
 
 # Set logging level to info.
+logging.basicConfig(level=logging.INFO)
 logger = logging.getLogger("compress")
 logger.setLevel(logging.INFO)
 
@@ -25,11 +26,14 @@ def compress_outputs():
     # Get a list of file names:
     output_file_names = [RUNDIR / f for f in output_file_names.split(" ") if f.strip()]
 
+    logger.info(f"File patterns: {output_file_names}")
     output_files = []
     for file_pattern in output_file_names:
         output_files.extend(glob.glob(file_pattern.as_posix()))
 
+
     output_files = [Path(f) for f in output_files]
+    logger.info(f"Output files: {output_files}")
 
     if not output_files:
         logger.warning("The list of files is empty!")
-- 
GitLab