diff --git a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
index 530cf8b..f1a2ad7 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/io/OsmApiDb.cpp
@@ -35,7 +35,6 @@
#include <hoot/core/util/GeometryUtils.h>
#include <hoot/core/util/HootException.h>
#include <hoot/core/util/Log.h>
-#include <hoot/core/elements/OsmUtils.h>
// qt
#include <QStringList>
@@ -598,11 +597,15 @@ QStringList OsmApiDb::_getTables()
void OsmApiDb::disableConstraints()
{
+ LOG_DEBUG("Disabling OSMAPI database constraints...");
+
_modifyConstraints(_getTables(), true);
}
void OsmApiDb::enableConstraints()
{
+ LOG_DEBUG("Enabling OSMAPI database constraints...");
+
_modifyConstraints(_getTables(), false);
}
@@ -623,6 +626,8 @@ void OsmApiDb::_modifyConstraints(const QStringList& tableNames, bool disable)
void OsmApiDb::dropIndexes()
{
+ LOG_DEBUG("Dropping OSMAPI database indexes...");
+
//changesets
DbUtils::execNoPrepare(
getDB(), QString("DROP INDEX %1_bbox_idx").arg(ApiDb::getChangesetsTableName()));
@@ -688,6 +693,8 @@ void OsmApiDb::dropIndexes()
void OsmApiDb::createIndexes()
{
+ LOG_INFO("Creating OSMAPI database indexes...");
+
//changesets
DbUtils::execNoPrepare(
getDB(),