History

Log cleanup

humbletim committed 9 years ago

Commit cdbb13e1 parent 3ac11651 file · +6 −0Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+6−0
@@ -1587,16 +1587,20 @@ void ScriptEngine::loadEntityScript(const EntityItemID& entityID, const QString& · 1586 unmodified lines
15871587 } else {
15881588 // since not reloading, assume that the exact same input would produce the exact same output again
15891589 // note: this state gets reset with "reload all scripts," leaving/returning to a Domain, clear cache, etc.
1590+#ifdef DEBUG_ENTITY_STATES
15901591 qCDebug(scriptengine) << QString("loadEntityScript.cancelled entity: %1 script: %2 (previous script failure)")
15911592 .arg(entityID.toString()).arg(entityScript);
1593+#endif
15921594 updateEntityScriptStatus(entityID, EntityScriptStatus::ERROR_LOADING_SCRIPT,
15931595 "A previous Entity failed to load using this script URL; reload to try again.");
15941596 return;
15951597 }
15961598 } else {
15971599 // another entity is busy loading from this script URL so wait for them to finish
1600+#ifdef DEBUG_ENTITY_STATES
15981601 qCDebug(scriptengine) << QString("loadEntityScript.deferring[%0] entity: %1 script: %2 (waiting on %3)")
15991602 .arg( _deferredEntityLoads.size()).arg(entityID.toString()).arg(entityScript).arg(currentEntityID.toString());
1603+#endif
16001604 _deferredEntityLoads.push_back({ entityID, entityScript });
16011605 return;
16021606 }
@@ -1687,7 +1691,9 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 84 unmodified lines
16871691 newDetails.status = status;
16881692 setEntityScriptDetails(entityID, newDetails);
16891693
1694+#ifdef DEBUG_ENTITY_STATES
16901695 qCDebug(scriptengine) << "entityScriptContentAvailable -- flagging " << entityScript << " as BAD_SCRIPT_UUID_PLACEHOLDER";
1696+#endif
16911697 // flag the original entityScript as unusuable
16921698 _occupiedScriptURLs[entityScript] = BAD_SCRIPT_UUID_PLACEHOLDER;
16931699 processDeferredEntityLoads(entityScript, entityID);