From f1c54d59dabf61086ac90aa7b8e81348e091a3e4 Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Thu, 27 Feb 2025 09:38:20 +0100
Subject: [PATCH] log: Add debug logging

---
 SEPTREFHUM.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/SEPTREFHUM.py b/SEPTREFHUM.py
index 398c121..c704d26 100755
--- a/SEPTREFHUM.py
+++ b/SEPTREFHUM.py
@@ -90,8 +90,10 @@ local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE"))
 today = datetime.now(local_timezone)
 if len(sys.argv) > 1:
     year = int(sys.argv[1])
+    logging.info(f"Run for year={year} from param")
 else:
     year = today.year
+    logging.info(f"Run for current year ({year})")
 
 weather_data_path = infile_path
 if year < today.year:
-- 
GitLab