Avoid logging too much

This commit is contained in:
Victor Shcherb 2015-07-19 11:44:16 +02:00
parent 3e11ceb814
commit 324512dc42
2 changed files with 3 additions and 1 deletions

View file

@ -855,7 +855,7 @@ public class BinaryMapIndexReader {
}
}
if(req.numberOfVisitedObjects > 0) {
if(req.numberOfVisitedObjects > 0 && req.log) {
log.info("Search is done. Visit " + req.numberOfVisitedObjects + " objects. Read " + req.numberOfAcceptedObjects + " objects."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
log.info("Read " + req.numberOfReadSubtrees + " subtrees. Go through " + req.numberOfAcceptedSubtrees + " subtrees."); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
}
@ -1637,6 +1637,7 @@ public class BinaryMapIndexReader {
int numberOfReadSubtrees = 0;
int numberOfAcceptedSubtrees = 0;
boolean interrupted = false;
boolean log = true;
protected SearchRequest(){
}

View file

@ -250,6 +250,7 @@ public class OsmandRegions {
}
}
);
sr.log = false;
if(reader != null) {
reader.searchMapIndex(sr);
}