From 649d6ccfdcfe821ac63db697b42c6fca535214ec Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 12:46:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/processor/impl/DocumentProcessorImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 59a7c291..b1cea505 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -53,8 +53,10 @@ public class DocumentProcessorImpl implements DocumentProcessor{ logger.debug("init", "called"); // Init Variables this.documentRootPath = documentDetail.getPath().getFullPath(); + logger.debug("init", "documentRootPath: " + this.documentRootPath); FileManager fileManager = fileManagerFactory.create(this.documentRootPath); //Initialize FileManager + logger.debug("init", "fileManager created"); fileManager.autoCreateDir(this.documentRootPath); @@ -68,7 +70,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ xmlMetaModel = xmlMetaParser.deserialize(fileManager.loadDocument("meta.xml")); } catch (Exception e) { logger.debug("init", "meta.xml parse failed"); - e.printStackTrace(); + logger.trace("init", e.getMessage()); } } else { logger.debug("init", "meta.xml not found"); @@ -82,11 +84,14 @@ public class DocumentProcessorImpl implements DocumentProcessor{ try { fileManager.saveDocument(xmlMetaParser.serialize(xmlMetaModel), "meta.xml"); + logger.debug("init", "meta.xml saved"); } catch (Exception e) { - logger.debug("init", "meta.xml save failed"); - e.printStackTrace(); + logger.error("init", "meta.xml save failed"); + logger.trace("init", e.getMessage()); } } + + logger.info("init", "finished"); } @Override