From 0bef0b619a67f570e29292abd491b3bfac710755 Mon Sep 17 00:00:00 2001 From: chrisala Date: Wed, 20 Mar 2024 11:25:09 +1100 Subject: [PATCH] More logging #823 --- grails-app/services/au/org/ala/ecodata/ParatooService.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grails-app/services/au/org/ala/ecodata/ParatooService.groovy b/grails-app/services/au/org/ala/ecodata/ParatooService.groovy index 9023d9ddb..4b8d58a2c 100644 --- a/grails-app/services/au/org/ala/ecodata/ParatooService.groovy +++ b/grails-app/services/au/org/ala/ecodata/ParatooService.groovy @@ -460,14 +460,19 @@ class ParatooService { String url = paratooBaseUrl+'/'+apiEndpoint String query = buildSurveyQueryString(start, limit) + log.debug("Retrieving survey data from: "+url+query) Map response = webService.getJson(url+query, null, authHeader, false) + log.debug(response) Map survey = findMatchingSurvey(surveyId, response.data, config) + int total = response.meta?.pagination?.total ?: 0 while (!survey && start+limit < total) { start += limit query = buildSurveyQueryString(start, limit) + log.debug("Retrieving survey data from: "+url+query) response = webService.getJson(url+query, null, authHeader, false) + log.debug(response) survey = findMatchingSurvey(surveyId, response.data, config) }