diff --git a/src/main/java/org/gcube/resourcemanagement/support/server/managers/resources/GenericResourceManager.java b/src/main/java/org/gcube/resourcemanagement/support/server/managers/resources/GenericResourceManager.java index ca26588..62aea8f 100644 --- a/src/main/java/org/gcube/resourcemanagement/support/server/managers/resources/GenericResourceManager.java +++ b/src/main/java/org/gcube/resourcemanagement/support/server/managers/resources/GenericResourceManager.java @@ -227,6 +227,9 @@ public class GenericResourceManager extends AbstractResourceManager { * @throws ParserConfigurationException */ public static void appendXmlFragment(Profile profile, String fragment) throws IOException, ParserConfigurationException { + + ServerConsole.debug(LOG_PREFIX, "Appending to " + fragment); + DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Element elem = profile.newBody(); Node fragmentNode; @@ -236,7 +239,7 @@ public class GenericResourceManager extends AbstractResourceManager { elem.appendChild(fragmentNode); } catch (SAXException e) { //in case no xml is entered, just text - System.out.println("to append: " + fragment); + ServerConsole.warn("no valid xml appending this:" + fragment); profile.newBody(fragment); }