From e0ca2c694e67dff02182c090a94f3af4edd862c1 Mon Sep 17 00:00:00 2001 From: David Neiman Date: Fri, 14 Oct 2016 14:54:12 -0400 Subject: [PATCH] LIBDRS-5076 - changed missed ERROR logging statement to WARN. --- .../hul/ois/fits/XmlContentConverter.java | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/src/edu/harvard/hul/ois/fits/XmlContentConverter.java b/src/edu/harvard/hul/ois/fits/XmlContentConverter.java index e5428e64..aa2f0b6e 100644 --- a/src/edu/harvard/hul/ois/fits/XmlContentConverter.java +++ b/src/edu/harvard/hul/ois/fits/XmlContentConverter.java @@ -545,27 +545,24 @@ else if (fitsElem == ImageElement.digitalCameraModelSerialNo) } }//end of for loop - - try { - if(fileinfo != null) { - Element created = fileinfo.getChild (ImageElement.created.toString(),ns); - if(created != null) { - String date = null; - try { - date = XmlDateFormat.exifDateTimeToXml(created.getText().trim()); - } - catch (ParseException e) { - logger.error("Warning - unable to parse date: " + e.getMessage ()); - } - if(date != null) { - mm.icm.getGeneralCaptureInformation().setDateTimeCreated(date); - } - } + if(fileinfo != null) { + Element created = fileinfo.getChild (ImageElement.created.toString(),ns); + if(created != null) { + String date = null; + try { + date = XmlDateFormat.exifDateTimeToXml(created.getText().trim()); + if(date != null) { + mm.icm.getGeneralCaptureInformation().setDateTimeCreated(date); + } + } + catch (ParseException e) { + logger.warn("Warning - unable to parse date: " + e.getMessage ()); + } + catch (XmlContentException e) { + logger.warn("Invalid MIX content for data element [" + date + "]: " + e.getMessage ()); + } } - } - catch (XmlContentException e) { - logger.error("Invalid MIX content: " + e.getMessage ()); - } + } return mm.mix; }