History

Case 19754 - Remove logging URLs and related file locations.

The goal is to strip out data that can be used by untoward users in copying models, avatars, etc.

Roxanne Skelly committed 8 years ago

Commit cef70001 parent e80468e36 files · +84 −201Browse files

Showing the changes to libraries/script-engine/src/AssetScriptingInterface.cpp (1 of 36 files). Show all

Unified · Split

libraries/script-engine/src/AssetScriptingInterface.cpp+0−4
@@ -398,7 +398,6 @@ void AssetScriptingInterface::loadFromCache(QScriptValue options, QScriptValue s · 397 unmodified lines
398398 bool AssetScriptingInterface::canWriteCacheValue(const QUrl& url) {
399399 auto scriptEngine = qobject_cast<ScriptEngine*>(engine());
400400 if (!scriptEngine) {
401− qCDebug(scriptengine) << __FUNCTION__ << "invalid script engine" << url;
402401 return false;
403402 }
404403 // allow cache writes only from Client, EntityServer and Agent scripts
@@ -407,7 +406,6 @@ bool AssetScriptingInterface::canWriteCacheValue(const QUrl& url) { · 2 unmodified lines
407406 scriptEngine->isAgentScript()
408407 );
409408 if (!isAllowedContext) {
410− qCDebug(scriptengine) << __FUNCTION__ << "invalid context" << scriptEngine->getContext() << url;
411409 return false;
412410 }
413411 return true;
@@ -430,7 +428,6 @@ void AssetScriptingInterface::saveToCache(const QUrl& rawURL, const QByteArray& · 16 unmodified lines
430428 auto atpURL = AssetUtils::getATPUrl(hashDataHex(data));
431429 atpURL.setQuery(url.query());
432430 atpURL.setFragment(url.fragment());
433− qCDebug(scriptengine) << "autogenerated ATP URL" << url << "=>" << atpURL;
434431 url = atpURL;
435432 }
436433 auto hash = AssetUtils::extractAssetHash(url.toDisplayString());
@@ -440,7 +437,6 @@ void AssetScriptingInterface::saveToCache(const QUrl& rawURL, const QByteArray& · 3 unmodified lines
440437 JS_VERIFY(url.scheme() == "atp" || url.scheme() == "cache", "only 'atp' and 'cache' URL schemes supported");
441438 JS_VERIFY(hash.isEmpty() || hash == hashDataHex(data), QString("invalid checksum hash for atp:HASH style URL (%1 != %2)").arg(hash, hashDataHex(data)));
442439
443− // qCDebug(scriptengine) << "saveToCache" << url.toDisplayString() << data << hash << metadata;
444440
445441 jsPromiseReady(Parent::saveToCache(url, data, metadata), scope, callback);
446442 }