diff --git a/hoot-core/src/main/cpp/hoot/core/elements/InMemoryElementSorter.cpp b/hoot-core/src/main/cpp/hoot/core/elements/InMemoryElementSorter.cpp
index 7803df2..d87dda9 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/InMemoryElementSorter.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/elements/InMemoryElementSorter.cpp
@@ -47,11 +47,16 @@ InMemoryElementSorter::InMemoryElementSorter(ConstOsmMapPtr source) :
{
// Its possible an empty map was sent back just for obtaining an empty stream...let's not
// log that.
- if (source->getElementCount() > 0)
+ const QString msg =
+ "Sorting " + StringUtils::formatLargeNumber(source->getElementCount()) +
+ " elements in-memory...";
+ if (source->getElementCount() > 100000)
{
- LOG_STATUS(
- "Sorting " << StringUtils::formatLargeNumber(source->getElementCount()) <<
- " elements in-memory...");
+ LOG_STATUS(msg);
+ }
+ else if (source->getElementCount() > 100000)
+ {
+ LOG_DEBUG(msg);
}
_source = source;