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
183183 }
184184
185185 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";
187187 propertiesWithSimID.setParentID(QUuid());
188188 }
189189
@@ -364,7 +364,7 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& · 174 unmodified lines
364364 if (!scriptSideProperties.parentIDChanged()) {
365365 properties.setParentID(entity->getParentID());
366366 } 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";
368368 properties.setParentID(QUuid());
369369 }
370370 if (!scriptSideProperties.parentJointIndexChanged()) {
@@ -925,12 +925,12 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 554 unmodified lines
925925 EntitySimulationPointer simulation = _entityTree->getSimulation();
926926 entity = _entityTree->findEntityByEntityItemID(entityID);
927927 if (!entity) {
928− qDebug() << "actionWorker -- unknown entity" << entityID;
928+ qCDebug(entities) << "actionWorker -- unknown entity" << entityID;
929929 return;
930930 }
931931
932932 if (!simulation) {
933− qDebug() << "actionWorker -- no simulation" << entityID;
933+ qCDebug(entities) << "actionWorker -- no simulation" << entityID;
934934 return;
935935 }
936936
@@ -1045,7 +1045,7 @@ EntityItemPointer EntityScriptingInterface::checkForTreeEntityAndTypeMatch(const · 108 unmodified lines
10451045
10461046 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(entityID);
10471047 if (!entity) {
1048− qDebug() << "EntityScriptingInterface::checkForTreeEntityAndTypeMatch - no entity with ID" << entityID;
1048+ qCDebug(entities) << "EntityScriptingInterface::checkForTreeEntityAndTypeMatch - no entity with ID" << entityID;
10491049 return entity;
10501050 }
10511051
@@ -1305,7 +1305,7 @@ QVector<QUuid> EntityScriptingInterface::getChildrenIDs(const QUuid& parentID) { · 253 unmodified lines
13051305
13061306 EntityItemPointer entity = _entityTree->findEntityByEntityItemID(parentID);
13071307 if (!entity) {
1308− qDebug() << "EntityScriptingInterface::getChildrenIDs - no entity with ID" << parentID;
1308+ qCDebug(entities) << "EntityScriptingInterface::getChildrenIDs - no entity with ID" << parentID;
13091309 return result;
13101310 }
13111311