Skip to content

Commit

Permalink
Adding debug logging #823
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Mar 19, 2024
1 parent 3995dae commit 03b0d10
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ class ParatooProtocolConfig {

boolean matches(Map surveyData, ParatooCollectionId surveyId) {
Map tmpSurveyId = getSurveyId(surveyData)
tmpSurveyId.surveyType == surveyId.survey_metadata.survey_details.survey_model &&
tmpSurveyId.time == surveyId.survey_metadata.survey_details.time &&
tmpSurveyId.uuid == surveyId.survey_metadata.survey_details.uuid
if (!tmpSurveyId) {
log.error("Cannot find surveyId:")
log.debug(surveyData)
return false
}
tmpSurveyId?.surveyType == surveyId.survey_metadata?.survey_details.survey_model &&
tmpSurveyId?.time == surveyId.survey_metadata?.survey_details.time &&
tmpSurveyId?.uuid == surveyId.survey_metadata?.survey_details.uuid
}

private Map extractSiteDataFromPlotVisit(Map survey) {
Expand Down

0 comments on commit 03b0d10

Please sign in to comment.