From feec9d8014747ccdea7d5c5cdb8607d5b1f6caf5 Mon Sep 17 00:00:00 2001 From: mka Date: Tue, 19 Mar 2013 12:25:05 +0000 Subject: [PATCH] small correction. --- .../src/org/splat/service/StudyServiceImpl.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java index 14145e9..9b7bd1c 100644 --- a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java @@ -1304,10 +1304,7 @@ public class StudyServiceImpl implements StudyService { dataset.addSeries(series); } catch (FileNotFoundException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the file is not found."); - } - return "ERROR"; + LOG.error("Sorry, the file is not found.", e); } } // for @@ -1346,13 +1343,9 @@ public class StudyServiceImpl implements StudyService { document.close(); } catch (FileNotFoundException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the file is not found."); - } + LOG.error("Sorry, the file is not found.", e); } catch (DocumentException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the DocumentException is thrown."); - } + LOG.error("Sorry, the DocumentException is thrown.", e); } return resultPath; -- 2.30.2