History

cleanup naked qDebug() calls

Brad Hefta-Gaub committed 9 years ago

Commit dbbed461 parent 1e5e6a184 files · +383 −316Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 84 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+6−6
@@ -183,7 +183,7 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties · 182 unmodified lines
183 }183 }
184 184
185 if (propertiesWithSimID.getParentID() == AVATAR_SELF_ID) {185 if (propertiesWithSimID.getParentID() == AVATAR_SELF_ID) {
186 qDebug() << "ERROR: Cannot set entity parent ID to the local-only MyAvatar ID";186 qCDebug(entities) << "ERROR: Cannot set entity parent ID to the local-only MyAvatar ID";
187 propertiesWithSimID.setParentID(QUuid());187 propertiesWithSimID.setParentID(QUuid());
188 }188 }
189 189
@@ -364,7 +364,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 174 unmodified lines
364 if (!scriptSideProperties.parentIDChanged()) {364 if (!scriptSideProperties.parentIDChanged()) {
365 properties.setParentID(entity->getParentID());365 properties.setParentID(entity->getParentID());
366 } else if (scriptSideProperties.getParentID() == AVATAR_SELF_ID) {366 } else if (scriptSideProperties.getParentID() == AVATAR_SELF_ID) {
367 qDebug() << "ERROR: Cannot set entity parent ID to the local-only MyAvatar ID";367 qCDebug(entities) << "ERROR: Cannot set entity parent ID to the local-only MyAvatar ID";
368 properties.setParentID(QUuid());368 properties.setParentID(QUuid());
369 }369 }
370 if (!scriptSideProperties.parentJointIndexChanged()) {370 if (!scriptSideProperties.parentJointIndexChanged()) {
@@ -925,12 +925,12 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 554 unmodified lines
925 EntitySimulationPointer simulation = _entityTree->getSimulation();925 EntitySimulationPointer simulation = _entityTree->getSimulation();
926 entity = _entityTree->findEntityByEntityItemID(entityID);926 entity = _entityTree->findEntityByEntityItemID(entityID);
927 if (!entity) {927 if (!entity) {
928 qDebug() << "actionWorker -- unknown entity" << entityID;928 qCDebug(entities) << "actionWorker -- unknown entity" << entityID;
929 return;929 return;
930 }930 }
931 931
932 if (!simulation) {932 if (!simulation) {
933 qDebug() << "actionWorker -- no simulation" << entityID;933 qCDebug(entities) << "actionWorker -- no simulation" << entityID;
934 return;934 return;
935 }935 }
936 936
@@ -1045,7 +1045,7 @@ EntityItemPointer EntityScriptingInterface::checkForTreeEntityAndTypeMatch(const · 108 unmodified lines
1045 1045
1046 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID);1046 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID);
1047 if (!entity) {1047 if (!entity) {
1048 qDebug() << "EntityScriptingInterface::checkForTreeEntityAndTypeMatch - no entity with ID" << entityID;1048 qCDebug(entities) << "EntityScriptingInterface::checkForTreeEntityAndTypeMatch - no entity with ID" << entityID;
1049 return entity;1049 return entity;
1050 }1050 }
1051 1051
@@ -1305,7 +1305,7 @@ QVector<QUuid> EntityScriptingInterface::getChildrenIDs(const QUuid& parentID) { · 253 unmodified lines
1305 1305
1306 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(parentID);1306 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(parentID);
1307 if (!entity) {1307 if (!entity) {
1308 qDebug() << "EntityScriptingInterface::getChildrenIDs - no entity with ID" << parentID;1308 qCDebug(entities) << "EntityScriptingInterface::getChildrenIDs - no entity with ID" << parentID;
1309 return result;1309 return result;
1310 }1310 }
1311 1311