[Yanel-commits] rev 56588 - public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/calendar
michi at wyona.com
michi at wyona.com
Mon Feb 7 22:06:59 CET 2011
Author: michi
Date: 2011-02-07 22:06:59 +0100 (Mon, 07 Feb 2011)
New Revision: 56588
Modified:
public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/calendar/CalendarResource.java
Log:
log level fixed
Modified: public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/calendar/CalendarResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/calendar/CalendarResource.java 2011-02-07 21:06:21 UTC (rev 56587)
+++ public/yanel/trunk/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/calendar/CalendarResource.java 2011-02-07 21:06:59 UTC (rev 56588)
@@ -109,12 +109,12 @@
Repository dataRepo = getRealm().getRepository();
if (dataRepo.existsNode(getPath()) && dataRepo.isResource(new org.wyona.yarep.core.Path(getPath()))) {
- log.warn("DEBUG: ICS exists: " + new org.wyona.yarep.core.Path(getPath()));
+ log.debug("ICS exists: " + new org.wyona.yarep.core.Path(getPath()));
if(viewId == null) {
View view = new View();
view.setMimeType(getMimeType(null));
view.setInputStream(dataRepo.getNode(getPath()).getInputStream());
- log.warn("DEBUG: Return ICS!");
+ log.debug("Return ICS!");
return view;
}
}
@@ -124,7 +124,7 @@
if (eventsPath == null) {
eventsPath = getPath();
}
- log.warn("DEBUG: Generate calendar from XML based events: " + eventsPath);
+ log.debug("Generate calendar from XML based events: " + eventsPath);
org.wyona.yarep.core.Path[] children = dataRepo.getChildren(new org.wyona.yarep.core.Path(eventsPath));
//org.wyona.yarep.core.Path[] children = dataRepo.search("categories", categories);
@@ -223,13 +223,13 @@
//java.io.BufferedReader br = new java.io.BufferedReader(new java.io.InputStreamReader(in));
String line;
CalendarEvent event = null;
- log.error("DEBUG: Parse ICS and write events as XML into repository ...");
+ log.debug("Parse ICS and write events as XML into repository ...");
while ((line = br.readLine()) != null) {
if (line.startsWith("BEGIN:VEVENT")) {
event = new CalendarEvent();
} else if (line.startsWith("END:VEVENT")) {
String eventPath = getResourceConfigProperty("events-path") + "/" + event.getUID() + ".xml";
- log.warn("DEBUG: Write event " + eventPath + ", " + event.toXML());
+ log.debug("Write event " + eventPath + ", " + event.toXML());
if (!dataRepo.existsNode(eventPath)) {
org.wyona.yarep.util.YarepUtil.addNodes(dataRepo, eventPath, org.wyona.yarep.core.NodeType.RESOURCE);
}
@@ -252,7 +252,7 @@
* Save/Write the actual ICS
*/
private InputStream writeICS(InputStream in) throws Exception {
- log.error("DEBUG: Write ICS as a whole to the repository: " + getPath());
+ log.debug("Write ICS as a whole to the repository: " + getPath());
org.wyona.yarep.core.Path path = new org.wyona.yarep.core.Path(getPath());
OutputStream out;
@@ -327,7 +327,7 @@
*/
public void create(HttpServletRequest request) {
String newPath = getPath();
- log.error("DEBUG: New path: " + newPath);
+ log.debug("New path: " + newPath);
}
/**
More information about the Yanel-commits
mailing list