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