From 9d52d4eb5c15765d28ef5f8950edae588736385d Mon Sep 17 00:00:00 2001 From: Nate Jensen Date: Tue, 11 Nov 2014 09:54:18 -0600 Subject: [PATCH] Omaha #3549 improve logging of findDataTime errors Change-Id: Ie1af1aac1750ebc42257d3dd3e448bb95801cceb Former-commit-id: 7a1dd6c72261fb0c1118cea226b5c31c8225b1c7 --- .../src/com/raytheon/uf/common/wmo/WMOTimeParser.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/edexOsgi/com.raytheon.uf.common.wmo/src/com/raytheon/uf/common/wmo/WMOTimeParser.java b/edexOsgi/com.raytheon.uf.common.wmo/src/com/raytheon/uf/common/wmo/WMOTimeParser.java index 306e69e78a..62001e5655 100644 --- a/edexOsgi/com.raytheon.uf.common.wmo/src/com/raytheon/uf/common/wmo/WMOTimeParser.java +++ b/edexOsgi/com.raytheon.uf.common.wmo/src/com/raytheon/uf/common/wmo/WMOTimeParser.java @@ -28,6 +28,7 @@ import java.util.zip.DataFormatException; import com.raytheon.uf.common.status.IUFStatusHandler; import com.raytheon.uf.common.status.UFStatus; +import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.common.time.util.TimeUtil; /** @@ -40,6 +41,7 @@ import com.raytheon.uf.common.time.util.TimeUtil; * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * May 13, 2014 2536 bclement Initial creation, moved from TimeTools + * Nov 10, 2014 3549 njensen Improve logging of findDataTime() * * * @@ -47,7 +49,7 @@ import com.raytheon.uf.common.time.util.TimeUtil; * @version 1.0 */ public class WMOTimeParser { - + private static final IUFStatusHandler logger = UFStatus .getHandler(WMOTimeParser.class); @@ -201,8 +203,8 @@ public class WMOTimeParser { try { issueTime = findCurrentTime(ddhhmm, fileName); } catch (DataFormatException e) { - logger.info(" Error in processing MND time; return current time "); - issueTime = null; + logger.handle(Priority.WARN, + "Error in processing MND time; return current time", e); } return issueTime; }