Author: julien_viet
Date: 2009-12-18 09:38:58 -0500 (Fri, 18 Dec 2009)
New Revision: 1070
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java
Log:
better logging for gadget import
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java 2009-12-18
14:12:44 UTC (rev 1069)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java 2009-12-18
14:38:58 UTC (rev 1070)
@@ -118,7 +118,7 @@
{
Element gadgetElement = (Element)nodeList.item(i);
String gadgetName = gadgetElement.getAttribute("name");
- log.info("About to import gadget " + gadgetName);
+ log.debug("About to import gadget " + gadgetName);
Element pathElt = XMLTools.getUniqueChild(gadgetElement, "path",
false);
if (pathElt != null)
{
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java 2009-12-18
14:12:44 UTC (rev 1069)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java 2009-12-18
14:38:58 UTC (rev 1070)
@@ -116,7 +116,7 @@
{
if (registry.getGadget(name) != null)
{
- System.out.println("Cannot import existing gagdet " + name);
+ log.debug("Will not import existing gagdet " + name);
return;
}
@@ -124,7 +124,7 @@
byte[] bytes = getGadgetBytes();
if (bytes == null)
{
- System.out.println("Coult not import gadget " + gadgetPath);
+ log.error("Cannot import gadget " + gadgetPath + " because its
data could not be found");
return;
}