You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2012/06/30 14:01:14 UTC
svn commit: r1355716 - in /incubator/stanbol/trunk:
commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/
entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/
entityhub/jersey/src/main/java/org/apache/stanbol/entityhu...
Author: rwesten
Date: Sat Jun 30 12:01:12 2012
New Revision: 1355716
URL: http://svn.apache.org/viewvc?rev=1355716&view=rev
Log:
minor: changed some logging from Info to Debug. This should decrease logfile sizes in INFO level by about 50%
Modified:
incubator/stanbol/trunk/commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/OpenNLP.java
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/FieldQueryReader.java
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/resource/ReferencedSiteRootResource.java
Modified: incubator/stanbol/trunk/commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/OpenNLP.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/OpenNLP.java?rev=1355716&r1=1355715&r2=1355716&view=diff
==============================================================================
--- incubator/stanbol/trunk/commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/OpenNLP.java (original)
+++ incubator/stanbol/trunk/commons/opennlp/src/main/java/org/apache/stanbol/commons/opennlp/OpenNLP.java Sat Jun 30 12:01:12 2012
@@ -176,7 +176,7 @@ public class OpenNLP {
model = null;
}
if(model == null){
- log.info("No perceptron based POS model for language "+language+
+ log.debug("No perceptron based POS model for language "+language+
"available. Will try to load maxent model");
try {
model = initModel(String.format("%s-pos-maxent.bin",language), POSModel.class);
@@ -280,7 +280,7 @@ public class OpenNLP {
// log.debug("ModelLocations for Bundle {} and Paths {} already registered");
// return;
// } else { //remove current registration
-// log.info("remove existing ModelLocations for Bundle {} and Paths {}",
+// log.debug("remove existing ModelLocations for Bundle {} and Paths {}",
// bundleSymbolicName,current.paths);
// if(current.provider != null){
// current.provider.close();
@@ -310,7 +310,7 @@ public class OpenNLP {
// synchronized (modelLocations) {
// ModelLocation current = modelLocations.remove(bundleSymbolicName);
// if(current != null){
-// log.info("remove modelLocation for Bundle {} and paths {}",
+// log.debug("remove modelLocation for Bundle {} and paths {}",
// bundleSymbolicName,current.paths);
// if(current.provider != null){
// current.provider.close();
@@ -350,11 +350,11 @@ public class OpenNLP {
try {
modelDataStream = lookupModelStream(name,modelProperties);
} catch (IOException e) {
- log.info("Unable to load Resource {} via the DataFileProvider",name);
+ log.debug("Unable to load Resource {} via the DataFileProvider",name);
return null;
}
if(modelDataStream == null){
- log.info("Unable to load Resource {} via the DataFileProvider",name);
+ log.debug("Unable to load Resource {} via the DataFileProvider",name);
return null;
}
T built;
Modified: incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/FieldQueryReader.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/FieldQueryReader.java?rev=1355716&r1=1355715&r2=1355716&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/FieldQueryReader.java (original)
+++ incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/FieldQueryReader.java Sat Jun 30 12:01:12 2012
@@ -68,7 +68,7 @@ public class FieldQueryReader implements
@Override
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
- log.info("isReadable type {}, mediaType {}",type,mediaType);
+ log.debug("isReadable type {}, mediaType {}",type,mediaType);
return FieldQuery.class.isAssignableFrom(type); //&& mediaType.isCompatible(MediaType.APPLICATION_JSON_TYPE);
}
@@ -319,7 +319,7 @@ public class FieldQueryReader implements
if(jConstraint.has("inclusive")){
inclusive = jConstraint.getBoolean("inclusive");
} else {
- log.info("RangeConstraint does not define the field 'inclusive'. Use false as default!");
+ log.debug("RangeConstraint does not define the field 'inclusive'. Use false as default!");
inclusive = false;
}
Object upperBound = jConstraint.opt("upperBound");
Modified: incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/resource/ReferencedSiteRootResource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/resource/ReferencedSiteRootResource.java?rev=1355716&r1=1355715&r2=1355716&view=diff
==============================================================================
--- incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/resource/ReferencedSiteRootResource.java (original)
+++ incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/resource/ReferencedSiteRootResource.java Sat Jun 30 12:01:12 2012
@@ -150,7 +150,7 @@ public class ReferencedSiteRootResource
public ReferencedSiteRootResource(@PathParam(value = "site") String siteId,
@Context ServletContext servletContext) {
super();
- log.info("<init> with site {}", siteId);
+ log.debug("<init> with site {}", siteId);
ReferencedSiteManager referencedSiteManager = ContextHelper.getServiceFromContext(
ReferencedSiteManager.class, servletContext);
if (siteId == null || siteId.isEmpty()) {
@@ -253,10 +253,10 @@ public class ReferencedSiteRootResource
@GET
@Path("/entity")
public Response getEntityById(@QueryParam(value = "id") String id, @Context HttpHeaders headers) {
- log.info("site/{}/entity Request",site.getId());
- log.info(" > id : " + id);
- log.info(" > accept : " + headers.getAcceptableMediaTypes());
- log.info(" > mediaType: " + headers.getMediaType());
+ log.debug("site/{}/entity Request",site.getId());
+ log.debug(" > id : " + id);
+ log.debug(" > accept : " + headers.getAcceptableMediaTypes());
+ log.debug(" > mediaType: " + headers.getMediaType());
Collection<String> supported = new HashSet<String>(JerseyUtils.ENTITY_SUPPORTED_MEDIA_TYPES);
supported.add(TEXT_HTML);
final MediaType acceptedMediaType = getAcceptableMediaType(headers,
@@ -273,7 +273,7 @@ public class ReferencedSiteRootResource
.header(HttpHeaders.ACCEPT, acceptedMediaType).build();
}
}
- log.info("handle Request for Entity {} of Site {}", id, site.getId());
+ log.debug("handle Request for Entity {} of Site {}", id, site.getId());
Entity entity;
try {
entity = site.getEntity(id);
@@ -290,7 +290,7 @@ public class ReferencedSiteRootResource
} else {
// TODO: How to parse an ErrorMessage?
// create an Response with the the Error?
- log.info(" ... Entity {} not found on referenced site {}",
+ log.debug(" ... Entity {} not found on referenced site {}",
id, site.getId());
return Response.status(Status.NOT_FOUND).
entity("Entity '"+id+"' not found on referenced site '"+site.getId()+"'\n")