Skip to content
Snippets Groups Projects
Commit f1c54d59 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

log: Add debug logging

parent 6925935c
No related branches found
No related tags found
No related merge requests found
...@@ -90,8 +90,10 @@ local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE")) ...@@ -90,8 +90,10 @@ local_timezone = pytz.timezone(os.getenv("LOCAL_TIMEZONE"))
today = datetime.now(local_timezone) today = datetime.now(local_timezone)
if len(sys.argv) > 1: if len(sys.argv) > 1:
year = int(sys.argv[1]) year = int(sys.argv[1])
logging.info(f"Run for year={year} from param")
else: else:
year = today.year year = today.year
logging.info(f"Run for current year ({year})")
weather_data_path = infile_path weather_data_path = infile_path
if year < today.year: if year < today.year:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment