changed log at debug level

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@133171 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-10-13 13:32:36 +00:00
parent 2514c1836e
commit 630ddcb9b2
1 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/**
*
*
*/
package org.gcube.portlets.user.speciesdiscovery.server.session;
@ -14,7 +14,7 @@ import org.gcube.portlets.user.speciesdiscovery.shared.FetchingElement;
* The Class Fetcher.
*
* @author "Federico De Faveri defaveri@isti.cnr.it"
*
*
* updated by Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
* @param <T> the generic type
*/
@ -68,12 +68,12 @@ public class Fetcher<T extends FetchingElement> implements Runnable, Closeable {
try {
while(source!=null && source.hasNext() && !complete) {
try {
next = source.next();
if(next!=null){
logger.info("item "+count++ +" fetch new row: "+next.getId());
logger.debug("item "+count++ +" fetch new row: "+next.getId());
buffer.add(next);
countNullItems = 0;
}
@ -85,25 +85,25 @@ public class Fetcher<T extends FetchingElement> implements Runnable, Closeable {
silentClose();
}
}
} catch (Exception e) {
logger.error("Error in source.next() " + e.getMessage(), e);
silentClose();
}
}
} catch (Exception e) {
logger.error("Error in add row " + e.getMessage());
silentClose();
}
if(source==null)
logger.warn("exit because source iterator is null");
logger.trace("exit fetch run - complete true");
complete = true;
}
/**
* Silent close.
*/
@ -134,5 +134,5 @@ public class Fetcher<T extends FetchingElement> implements Runnable, Closeable {
public boolean isComplete()
{
return complete;
}
}
}