From: <ix...@us...> - 2009-07-31 05:42:58
|
Revision: 9596 http://exist.svn.sourceforge.net/exist/?rev=9596&view=rev Author: ixitar Date: 2009-07-31 05:42:47 +0000 (Fri, 31 Jul 2009) Log Message: ----------- [ignore] removing all of the logger calls for entering and exiting from the function modules. Modified Paths: -------------- trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Query.java trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Score.java trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGMLProducers.java trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGeometricProperties.java trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunSpatialSearch.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/CountDayInMonthFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateForFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateFromDateTimeFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DayInWeekFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DaysInMonthFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateTimeFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatTimeFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/TimeFromDateTimeFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/WeekInMonthFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/example/EchoFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/DirectoryListFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileDelete.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileExists.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsDirectory.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsReadable.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsWriteable.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileRead.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadBinary.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadUnicode.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/SerializeToFile.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/ClearPersistentCookiesFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/DELETEFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/GETFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/HEADFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/OPTIONSFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/POSTFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/PUTFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetHeightFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetMetadataFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetThumbnailsFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetWidthFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/ScaleFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jfreechart/JFreeCharting.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CloseContextFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CreateFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/DeleteFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/GetDirContextFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/ModifyFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/RenameFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/SearchFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/mail/MailFolderFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/mail/MailSessionFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/mail/MailStoreFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/mail/MessageListFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/mail/SendEmailFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/math/NoParamFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/math/OneParamFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/math/TwoParamFunctions.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/metadata/MetadataFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/simpleql/ParseSimpleQL.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/sql/ExecuteFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/sql/GetConnectionFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/sql/GetJNDIConnectionFunction.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/xmldiff/Compare.java trunk/eXist/extensions/modules/src/org/exist/xquery/modules/xslfo/RenderFunction.java trunk/eXist/extensions/xprocxq/main/src/java/DirectoryListFunction.java Modified: trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Query.java =================================================================== --- trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Query.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Query.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -149,8 +149,6 @@ public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException { - logger.info("Entering " + LuceneModule.PREFIX + ":" + getName().getLocalName()); - if (contextItem != null) contextSequence = contextItem.toSequence(); @@ -187,7 +185,6 @@ contextStep.setPreloadedData(contextSequence.getDocumentSet(), preselectResult); result = getArgument(0).eval(contextSequence).toNodeSet(); } - logger.info("Exiting " + LuceneModule.PREFIX + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Score.java =================================================================== --- trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Score.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/indexes/lucene/src/org/exist/xquery/modules/lucene/Score.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -59,11 +59,9 @@ } public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + LuceneModule.PREFIX + ":" + getName().getLocalName()); NodeValue nodeValue = (NodeValue) args[0].itemAt(0); if (nodeValue.getImplementationType() != NodeValue.PERSISTENT_NODE) { - logger.info("Exiting " + LuceneModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } NodeProxy proxy = (NodeProxy) nodeValue; @@ -76,7 +74,6 @@ } match = match.getNextMatch(); } - logger.info("Exiting " + LuceneModule.PREFIX + ":" + getName().getLocalName()); return new FloatValue(score); } } Modified: trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGMLProducers.java =================================================================== --- trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGMLProducers.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGMLProducers.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -179,13 +179,11 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { Sequence result = null; - logger.info("Entering " + SpatialModule.PREFIX + ":" + getName().getLocalName()); try { AbstractGMLJDBCIndexWorker indexWorker = (AbstractGMLJDBCIndexWorker) context.getBroker().getIndexController().getWorkerByIndexId(AbstractGMLJDBCIndex.ID); if (indexWorker == null) { logger.error("Unable to find a spatial index worker"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to find a spatial index worker"); } Geometry geometry = null; @@ -209,7 +207,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } targetSRS = args[1].itemAt(0).getStringValue().trim(); @@ -226,12 +223,10 @@ geometry = wktReader.read(wkt); } catch (ParseException e) { logger.error(e.getMessage()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException(e); } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } targetSRS = args[1].itemAt(0).getStringValue().trim(); @@ -254,7 +249,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } @@ -274,7 +268,6 @@ default: { logger.error("Invalid line end style"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Invalid line end style"); } } @@ -298,7 +291,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } @@ -322,7 +314,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } @@ -346,7 +337,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } @@ -390,13 +380,11 @@ if (geometry1 == null) { logger.error("Unable to get a geometry from the first node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the first node"); } if (geometry2 == null) { logger.error("Unable to get a geometry from the second node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the second node"); } @@ -425,7 +413,6 @@ String gmlPrefix = context.getPrefixForURI(AbstractGMLJDBCIndexWorker.GML_NS); if (gmlPrefix == null) { logger.error("namespace is not defined:" + SpatialModule.PREFIX); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("'" + AbstractGMLJDBCIndexWorker.GML_NS + "' namespace is not defined"); } @@ -441,12 +428,10 @@ } } catch (SpatialIndexException e) { logger.error(e.getMessage()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException(e); } - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGeometricProperties.java =================================================================== --- trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGeometricProperties.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunGeometricProperties.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -259,10 +259,7 @@ Sequence result = null; Sequence nodes = args[0]; - logger.info("Entering " + SpatialModule.PREFIX + ":" + getName().getLocalName()); - if (nodes.isEmpty()) { - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); result = Sequence.EMPTY_SEQUENCE; } else { try { @@ -272,7 +269,6 @@ context.getBroker().getIndexController().getWorkerByIndexId(AbstractGMLJDBCIndex.ID); if (indexWorker == null) { logger.error("Unable to find a spatial index worker"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to find a spatial index worker"); } String propertyName = null; @@ -324,7 +320,6 @@ propertyName = "IS_VALID"; } else { logger.error("Unknown spatial property: " + mySignature.getName().getLocalName()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unknown spatial property: " + mySignature.getName().getLocalName()); } @@ -341,7 +336,6 @@ } if (geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } @@ -397,19 +391,16 @@ result = new BooleanValue(geometry.isValid()); } else { logger.error("Unknown spatial property: " + mySignature.getName().getLocalName()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unknown spatial property: " + mySignature.getName().getLocalName()); } } } catch (SpatialIndexException e) { logger.error(e.getMessage()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException(e); } } - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunSpatialSearch.java =================================================================== --- trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunSpatialSearch.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/indexes/spatial/src/org/exist/xquery/modules/spatial/FunSpatialSearch.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -135,10 +135,8 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { Sequence result = null; Sequence nodes = args[0]; - logger.info("Entering " + SpatialModule.PREFIX + ":" + getName().getLocalName()); if (nodes.isEmpty()) { - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); result = Sequence.EMPTY_SEQUENCE; } else if (args[1].isEmpty()) @@ -150,7 +148,6 @@ context.getBroker().getIndexController().getWorkerByIndexId(AbstractGMLJDBCIndex.ID); if (indexWorker == null) { logger.error("Unable to find a spatial index worker"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to find a spatial index worker"); } Geometry EPSG4326_geometry = null; @@ -165,7 +162,6 @@ } if (EPSG4326_geometry == null) { logger.error("Unable to get a geometry from the node"); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); throw new XPathException("Unable to get a geometry from the node"); } int spatialOp = SpatialOperator.UNKNOWN; @@ -189,12 +185,10 @@ result = indexWorker.search(context.getBroker(), nodes.toNodeSet(), EPSG4326_geometry, spatialOp); hasUsedIndex = true; } catch (SpatialIndexException e) { - logger.error(e.getMessage()); - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); + logger.error(e.getMessage(), e); throw new XPathException(e); } } - logger.info("Exiting " + SpatialModule.PREFIX + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/CountDayInMonthFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/CountDayInMonthFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/CountDayInMonthFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -65,8 +65,6 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - int dayOfInterest = ((IntegerValue)args[0].itemAt(0)).getInt(); DateValue d = (DateValue)args[1].itemAt(0); @@ -87,7 +85,6 @@ cal.add(Calendar.DATE, 7); } - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); return new IntegerValue(dayOfInterestCount); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateForFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateForFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateForFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -66,8 +66,6 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - int yearOfInterest = ((IntegerValue)args[0].itemAt(0)).getInt(); int monthOfInterest = ((IntegerValue)args[1].itemAt(0)).getInt(); int weekInMonth = ((IntegerValue)args[2].itemAt(0)).getInt(); @@ -90,8 +88,6 @@ cal.set(Calendar.WEEK_OF_MONTH, weekInMonth); cal.set(Calendar.DAY_OF_WEEK, dayInWeek); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return new DateValue(TimeUtils.getInstance().newXMLGregorianCalendar(cal)); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateFromDateTimeFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateFromDateTimeFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateFromDateTimeFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -60,10 +60,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return args[0].itemAt(0).convertTo(Type.DATE); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DateRangeFunctions.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -91,8 +91,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - Item item = (Item)args[0].itemAt(0); if(!(item instanceof AbstractDateTimeValue)) @@ -113,8 +111,6 @@ d1 = (AbstractDateTimeValue)d1.plus(diff); } - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return result; } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DayInWeekFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DayInWeekFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DayInWeekFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -60,12 +60,9 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - DateValue d = (DateValue) args[0].itemAt(0); GregorianCalendar cal = d.calendar.toGregorianCalendar(); int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); return new IntegerValue(dayOfWeek); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DaysInMonthFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DaysInMonthFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/DaysInMonthFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -64,12 +64,9 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - DateValue d = (DateValue)args[0].itemAt(0); GregorianCalendar cal = d.calendar.toGregorianCalendar(); int days = cal.getActualMaximum(Calendar.DAY_OF_MONTH); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); return new IntegerValue(days); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -64,8 +64,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - DateValue d = (DateValue)args[0].itemAt(0); String dateFormat = args[1].itemAt(0).toString(); @@ -74,8 +72,6 @@ GregorianCalendar cal = d.calendar.toGregorianCalendar(); String formattedDate = sdf.format(cal.getTime()); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return new StringValue(formattedDate); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateTimeFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateTimeFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatDateTimeFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -66,8 +66,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - DateTimeValue dt = (DateTimeValue)args[0].itemAt(0); String dateTimeFormat = args[1].itemAt(0).toString(); @@ -76,8 +74,6 @@ GregorianCalendar cal = dt.calendar.toGregorianCalendar(); String formattedDate = sdf.format(cal.getTime()); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return new StringValue(formattedDate); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatTimeFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatTimeFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/FormatTimeFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -65,8 +65,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - TimeValue t = (TimeValue)args[0].itemAt(0); String timeFormat = args[1].itemAt(0).toString(); @@ -75,8 +73,6 @@ GregorianCalendar cal = t.calendar.toGregorianCalendar(); String formattedDate = sdf.format(cal.getTime()); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return new StringValue(formattedDate); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/TimeFromDateTimeFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/TimeFromDateTimeFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/TimeFromDateTimeFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -60,10 +60,6 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - return args[0].itemAt(0).convertTo(Type.TIME); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/WeekInMonthFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/WeekInMonthFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/datetime/WeekInMonthFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -65,12 +65,10 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); - DateValue d = (DateValue)args[0].itemAt(0); GregorianCalendar cal = d.calendar.toGregorianCalendar(); int weekInMonth = cal.get(Calendar.WEEK_OF_MONTH); - logger.info("Exiting " + DateTimeModule.PREFIX + ":" + getName().getLocalName()); + return new IntegerValue(weekInMonth); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/example/EchoFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/example/EchoFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/example/EchoFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -60,11 +60,9 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ExampleModule.NAMESPACE_URI + ":" + getName().getLocalName()); // is argument the empty sequence? if (args[0].isEmpty()) { - logger.info("Exiting " + ExampleModule.NAMESPACE_URI + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -74,7 +72,6 @@ String str = i.nextItem().getStringValue(); result.add(new StringValue("echo: " + str)); } - logger.info("Exiting " + ExampleModule.NAMESPACE_URI + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/DirectoryListFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/DirectoryListFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/DirectoryListFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -107,8 +107,6 @@ */ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); - File baseDir = new File( args[0].getStringValue() ); Sequence patterns = args[1]; @@ -160,8 +158,6 @@ xmlResponse = (NodeValue) builder.getDocument().getDocumentElement(); - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); - return(xmlResponse); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileDelete.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileDelete.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileDelete.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -69,8 +69,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); - Sequence deleted = BooleanValue.FALSE; String path = args[0].itemAt(0).getStringValue(); File file = new File( path ); @@ -79,7 +77,6 @@ deleted = BooleanValue.TRUE; } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( deleted ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileExists.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileExists.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileExists.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -68,7 +68,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); Sequence exists = BooleanValue.FALSE; String path = args[0].itemAt(0).getStringValue(); File file = new File( path ); @@ -77,7 +76,6 @@ exists = BooleanValue.TRUE; } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( exists ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsDirectory.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsDirectory.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsDirectory.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -70,7 +70,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); Sequence isDir = BooleanValue.FALSE; String path = args[0].itemAt(0).getStringValue(); File file = new File( path ); @@ -79,7 +78,6 @@ isDir = BooleanValue.TRUE; } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( isDir ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsReadable.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsReadable.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsReadable.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -70,7 +70,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); Sequence readable = BooleanValue.FALSE; String path = args[0].itemAt(0).getStringValue(); File file = new File( path ); @@ -79,7 +78,6 @@ readable = BooleanValue.TRUE; } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( readable ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsWriteable.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsWriteable.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileIsWriteable.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -70,7 +70,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); Sequence writeable = BooleanValue.FALSE; String path = args[0].itemAt(0).getStringValue(); File file = new File( path ); @@ -79,7 +78,6 @@ writeable = BooleanValue.TRUE; } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( writeable ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileRead.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileRead.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileRead.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -84,7 +84,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); String arg = args[0].itemAt(0).getStringValue(); StringWriter sw; @@ -116,8 +115,6 @@ throw( new XPathException( this, e.getMessage() ) ); } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); - //TODO : return an *Item* built with sw.toString() return( new StringValue( sw.toString() ) ); Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadBinary.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadBinary.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadBinary.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -75,7 +75,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); String arg = args[0].itemAt(0).getStringValue(); byte[] buffer; @@ -101,7 +100,6 @@ throw( new XPathException( this, e.getMessage() ) ); } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( new Base64Binary( buffer ) ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadUnicode.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadUnicode.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/FileReadUnicode.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -83,8 +83,6 @@ */ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); - String arg = args[0].itemAt(0).getStringValue(); StringWriter sw; @@ -118,7 +116,6 @@ //TODO : return an *Item* built with sw.toString() - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return( new StringValue( sw.toString() ) ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/SerializeToFile.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/SerializeToFile.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/file/SerializeToFile.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -96,10 +96,8 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + FileModule.PREFIX + ":" + getName().getLocalName()); - + if(args[0].isEmpty()) { - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -111,14 +109,12 @@ if(file.isDirectory()) { logger.debug("Cannot serialize file. Output file is a directory: " + file.getAbsolutePath()); - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return BooleanValue.FALSE; } if(file.exists() && !file.canWrite()) { logger.debug("Cannot serialize file. Cannot write to file " + file.getAbsolutePath() ); - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return BooleanValue.FALSE; } @@ -139,7 +135,6 @@ throw new XPathException(this, "Unknown function name"); } - logger.info("Exiting " + FileModule.PREFIX + ":" + getName().getLocalName()); return BooleanValue.TRUE; } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/ClearPersistentCookiesFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/ClearPersistentCookiesFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/ClearPersistentCookiesFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -58,10 +58,7 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); context.setXQueryContextVar( HTTP_MODULE_PERSISTENT_COOKIES, null ); - - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/DELETEFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/DELETEFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/DELETEFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -62,12 +62,10 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if( args[0].isEmpty() ) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -95,7 +93,6 @@ delete.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( response ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/GETFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/GETFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/GETFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -62,12 +62,10 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if( args[0].isEmpty() ) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -95,7 +93,6 @@ get.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( response ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/HEADFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/HEADFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/HEADFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -66,12 +66,10 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if( args[0].isEmpty() ) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -99,7 +97,6 @@ head.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( response ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/OPTIONSFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/OPTIONSFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/OPTIONSFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -64,12 +64,10 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if( args[0].isEmpty() ) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -97,7 +95,6 @@ options.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( response ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/POSTFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/POSTFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/POSTFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -95,13 +95,11 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if(args[0].isEmpty()) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return(Sequence.EMPTY_SEQUENCE); } @@ -179,7 +177,6 @@ } else { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return(Sequence.EMPTY_SEQUENCE); } @@ -205,7 +202,6 @@ post.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return(response); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/PUTFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/PUTFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/httpclient/PUTFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -72,12 +72,10 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + PREFIX + ":" + getName().getLocalName()); Sequence response = null; // must be a URL if( args[0].isEmpty() ) { - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -134,7 +132,6 @@ put.releaseConnection(); } - logger.info("Exiting " + PREFIX + ":" + getName().getLocalName()); return( response ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetHeightFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetHeightFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetHeightFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -87,11 +87,8 @@ */ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ImageModule.PREFIX + ":" + getName().getLocalName()); - //was an image speficifed if (args[0].isEmpty()) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -104,14 +101,12 @@ catch(IOException ioe) { logger.error("Unable to read image data!", ioe); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } if(image == null) { logger.error("Unable to read image data!"); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -123,12 +118,10 @@ { //no, log the error logger.error("Unable to read image data!"); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } else { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); //return the Height of the image return new IntegerValue(iHeight); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetMetadataFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetMetadataFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetMetadataFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -101,11 +101,8 @@ */ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ImageModule.PREFIX + ":" + getName().getLocalName()); - //was an image and format speficifed if (args[0].isEmpty() || args[1].isEmpty()) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -143,7 +140,6 @@ //check we have the metadata if(nMetadata == null) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -159,7 +155,6 @@ streamer.serialize(nMetadata); Document docMetadata = receiver.getDocument(); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return (NodeValue)docMetadata; } catch(SAXException se) @@ -177,7 +172,6 @@ throw new XPathException(this, ioe.getMessage(), ioe); } - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetThumbnailsFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetThumbnailsFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetThumbnailsFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -81,14 +81,11 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ImageModule.PREFIX + ":" + getName().getLocalName()); - ValueSequence result = new ValueSequence(); // boolean isDatabasePath = false; boolean isSaveToDataBase = false; if (args[0].isEmpty()) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -151,7 +148,6 @@ pool = BrokerPool.getInstance(); } catch (Exception e) { result.add(new StringValue(e.getMessage())); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return result; } TransactionManager transact = pool.getTransactionManager(); @@ -184,7 +180,6 @@ .toXmldbURI()); if (allPictures == null) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -295,7 +290,6 @@ transact.getJournal().flushToLog(true); dbbroker.closeDocument(); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return result; } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetWidthFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetWidthFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/GetWidthFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -88,11 +88,8 @@ */ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ImageModule.PREFIX + ":" + getName().getLocalName()); - //was an image speficifed if (args[0].isEmpty()) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -105,14 +102,12 @@ catch(IOException ioe) { logger.error("Unable to read image data!", ioe); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } if(image == null) { logger.error("Unable to read image data!"); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -124,12 +119,10 @@ { //no, log the error logger.error("Unable to read image data!"); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } else { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); //return the width of the image return new IntegerValue(iWidth); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/ScaleFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/ScaleFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/image/ScaleFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -96,11 +96,8 @@ */ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + ImageModule.PREFIX + ":" + getName().getLocalName()); - //was an image and a mime-type speficifed if(args[0].isEmpty() || args[2].isEmpty()) { - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -130,7 +127,6 @@ if(image == null) { logger.error("Unable to read image data!"); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -141,8 +137,6 @@ ByteArrayOutputStream os = new ByteArrayOutputStream(); ImageIO.write(bImage, formatName, os); - logger.info("Exiting " + ImageModule.PREFIX + ":" + getName().getLocalName()); - //return the new scaled image data return new Base64Binary(os.toByteArray()); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jfreechart/JFreeCharting.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jfreechart/JFreeCharting.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jfreechart/JFreeCharting.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -117,11 +117,8 @@ @Override public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { - logger.info("Entering " + JFreeChartModule.PREFIX + ":" + getName().getLocalName()); - //was an image and a mime-type speficifed if(args[1].isEmpty() || args[2].isEmpty()){ - logger.info("Exiting " + JFreeChartModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } @@ -154,7 +151,6 @@ // Render output if(isCalledAs("render")){ byte[] image=writePNG(config, chart); - logger.info("Exiting " + JFreeChartModule.PREFIX + ":" + getName().getLocalName()); return new Base64Binary(image); } else { @@ -168,7 +164,6 @@ throw new XPathException(this, ex.getMessage()); } - logger.info("Exiting " + JFreeChartModule.PREFIX + ":" + getName().getLocalName()); return Sequence.EMPTY_SEQUENCE; } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CloseContextFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CloseContextFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CloseContextFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -91,11 +91,8 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + JNDIModule.PREFIX + ":" + getName().getLocalName()); - // Was a Dir Context handle specified if( args[0].isEmpty() ) { - logger.info("Exiting " + JNDIModule.PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } @@ -103,7 +100,6 @@ JNDIModule.closeJNDIContext( context, ctxID ); - logger.info("Exiting " + JNDIModule.PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CreateFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CreateFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/CreateFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -102,8 +102,6 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + JNDIModule.PREFIX + ":" + getName().getLocalName()); - // Was context handle or DN specified? if( !( args[0].isEmpty() ) && !( args[1].isEmpty() ) ) { @@ -132,7 +130,6 @@ } } - logger.info("Exiting " + JNDIModule.PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/DeleteFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/DeleteFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/DeleteFunction.java 2009-07-31 05:42:47 UTC (rev 9596) @@ -98,8 +98,6 @@ public Sequence eval( Sequence[] args, Sequence contextSequence ) throws XPathException { - logger.info("Entering " + JNDIModule.PREFIX + ":" + getName().getLocalName()); - // Was context handle or DN specified? if( !( args[0].isEmpty() ) && !( args[1].isEmpty() ) ) { @@ -122,7 +120,6 @@ } } - logger.info("Exiting " + JNDIModule.PREFIX + ":" + getName().getLocalName()); return( Sequence.EMPTY_SEQUENCE ); } Modified: trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/GetDirContextFunction.java =================================================================== --- trunk/eXist/extensions/modules/src/org/exist/xquery/modules/jndi/GetDirContextFunction.java 2009-07-31 03:58:55 UTC (rev 9595) +++ trunk/eXist/extensions/modules/src/org/exist/xquery/mod... [truncated message content] |