From 18fdfec20a085c12dd1cf8ed3a0276a678fb968b Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Mon, 28 Oct 2024 15:10:58 +0100
Subject: [PATCH] log: Log where weather observations are retrieved from

---
 .../java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java b/src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
index dd9eb671..30b120b4 100755
--- a/src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
+++ b/src/main/java/no/nibio/vips/util/weather/WeatherDataSourceUtil.java
@@ -73,6 +73,7 @@ public class WeatherDataSourceUtil {
      */
     public List<WeatherObservation> getWeatherObservations(PointOfInterestWeatherStation station, Integer logIntervalId, String[] elementMeasurementTypes, Date startTime, Date endTime, Boolean ignoreErrors, Set<Integer> toleratedLogIntervalIds) throws WeatherDataSourceException {
         // Get measured (and possibly forecasted, depending on the data source) observations
+        LOGGER.info("Get weather observations for {} with URL {}", station.getName(), station.getDataFetchUri());
         List<WeatherObservation> observations = this.getWeatherObservations(station.getDataFetchUri(), logIntervalId, elementMeasurementTypes, startTime, endTime, TimeZone.getTimeZone(station.getTimeZone()), ignoreErrors, toleratedLogIntervalIds);
         Collections.sort(observations);
         // Append forecasts, if available
-- 
GitLab