diff --git a/interface/resources/qml/Browser.qml b/interface/resources/qml/Browser.qml index 4474cfb2cd..fd07995579 100644 --- a/interface/resources/qml/Browser.qml +++ b/interface/resources/qml/Browser.qml @@ -114,7 +114,6 @@ ScrollingWindow { sourceSize: Qt.size(width, height); verticalAlignment: Image.AlignVCenter; horizontalAlignment: Image.AlignHCenter - onSourceChanged: console.log("Icon url: " + source) } } @@ -249,10 +248,6 @@ ScrollingWindow { root.loadingChanged(loadRequest.status); } - onIconChanged: { - console.log("New icon: " + icon) - } - onWindowCloseRequested: { root.destroy(); } diff --git a/interface/resources/qml/dialogs/FileDialog.qml b/interface/resources/qml/dialogs/FileDialog.qml index 6651af0db3..0e2075d9bc 100644 --- a/interface/resources/qml/dialogs/FileDialog.qml +++ b/interface/resources/qml/dialogs/FileDialog.qml @@ -80,8 +80,6 @@ ModalWindow { property int clickedButton: OriginalDialogs.StandardButton.NoButton; Component.onCompleted: { - console.log("Helper " + helper + " drives " + drives); - fileDialogItem.keyboardEnabled = HMD.active; // HACK: The following lines force the model to initialize properly such that the go-up button @@ -809,7 +807,6 @@ ModalWindow { } } - console.log("Selecting " + selection) selectedFile(selection); root.destroy(); } diff --git a/interface/resources/qml/dialogs/TabletFileDialog.qml b/interface/resources/qml/dialogs/TabletFileDialog.qml index 6848c230e3..5a4e913e7c 100644 --- a/interface/resources/qml/dialogs/TabletFileDialog.qml +++ b/interface/resources/qml/dialogs/TabletFileDialog.qml @@ -765,8 +765,7 @@ TabletModalWindow { return; } } - - console.log("Selecting " + selection) + selectedFile(selection); root.destroy(); } diff --git a/interface/resources/qml/dialogs/preferences/AvatarPreference.qml b/interface/resources/qml/dialogs/preferences/AvatarPreference.qml index 0efc3776b3..45ff18ba90 100644 --- a/interface/resources/qml/dialogs/preferences/AvatarPreference.qml +++ b/interface/resources/qml/dialogs/preferences/AvatarPreference.qml @@ -22,8 +22,6 @@ Preference { Component.onCompleted: { dataTextField.text = preference.value; - console.log("MyAvatar modelName " + MyAvatar.getFullAvatarModelName()) - console.log("Application : " + ApplicationInterface) ApplicationInterface.fullAvatarURLChanged.connect(processNewAvatar); } diff --git a/interface/resources/qml/dialogs/preferences/BrowsablePreference.qml b/interface/resources/qml/dialogs/preferences/BrowsablePreference.qml index 2cf50891c9..6008e9ea3f 100644 --- a/interface/resources/qml/dialogs/preferences/BrowsablePreference.qml +++ b/interface/resources/qml/dialogs/preferences/BrowsablePreference.qml @@ -70,7 +70,6 @@ Preference { dir: fileDialogHelper.pathToUrl(preference.value) }); browser.selectedFile.connect(function(fileUrl){ - console.log(fileUrl); dataTextField.text = fileDialogHelper.urlToPath(fileUrl); }); } diff --git a/interface/resources/qml/hifi/AssetServer.qml b/interface/resources/qml/hifi/AssetServer.qml index 1a7f5bac40..ea4dbe3233 100644 --- a/interface/resources/qml/hifi/AssetServer.qml +++ b/interface/resources/qml/hifi/AssetServer.qml @@ -81,16 +81,14 @@ Windows.ScrollingWindow { } function doDeleteFile(paths) { - console.log("Deleting " + paths); - Assets.deleteMappings(paths, function(err) { if (err) { - console.log("Asset browser - error deleting paths: ", paths, err); + console.log("Asset browser - error deleting paths: ", err); - box = errorMessageBox("There was an error deleting:\n" + paths + "\n" + err); + box = errorMessageBox("There was an error deleting:\n" + err); box.selected.connect(reload); } else { - console.log("Asset browser - finished deleting paths: ", paths); + console.log("Asset browser - finished deleting paths"); reload(); } }); @@ -117,11 +115,11 @@ Windows.ScrollingWindow { Assets.renameMapping(oldPath, newPath, function(err) { if (err) { - console.log("Asset browser - error renaming: ", oldPath, "=>", newPath, " - error ", err); + console.log("Asset browser - error renaming:", err); box = errorMessageBox("There was an error renaming:\n" + oldPath + " to " + newPath + "\n" + err); box.selected.connect(reload); } else { - console.log("Asset browser - finished rename: ", oldPath, "=>", newPath); + console.log("Asset browser - finished rename"); } reload(); @@ -280,7 +278,7 @@ Windows.ScrollingWindow { gravity = Vec3.multiply(Vec3.fromPolar(Math.PI / 2, 0), 0); } - print("Asset browser - adding asset " + url + " (" + name + ") to world."); + print("Asset browser - adding asset " + name + " to world."); // Entities.addEntity doesn't work from QML, so we use this. Entities.addModelEntity(name, url, "", shapeType, dynamic, collisionless, grabbable, addPosition, gravity); @@ -426,7 +424,7 @@ Windows.ScrollingWindow { uploadProgressLabel.text = "In progress..."; }, function(err, path) { - print(err, path); + print(err); if (err === "") { uploadProgressLabel.text = "Upload Complete"; timer.interval = 1000; @@ -437,7 +435,7 @@ Windows.ScrollingWindow { uploadOpen = false; }); timer.start(); - console.log("Asset Browser - finished uploading: ", fileUrl); + console.log("Asset Browser - finished uploading"); reload(); } else { uploadSpinner.visible = false; @@ -445,7 +443,7 @@ Windows.ScrollingWindow { uploadOpen = false; if (err !== -1) { - console.log("Asset Browser - error uploading: ", fileUrl, " - error ", err); + console.log("Asset Browser - error uploading:", err); var box = errorMessageBox("There was an error uploading:\n" + fileUrl + "\n" + err); box.selected.connect(reload); } diff --git a/interface/resources/qml/hifi/AvatarApp.qml b/interface/resources/qml/hifi/AvatarApp.qml index aea5931627..62d073a96c 100644 --- a/interface/resources/qml/hifi/AvatarApp.qml +++ b/interface/resources/qml/hifi/AvatarApp.qml @@ -62,7 +62,7 @@ Rectangle { } } catch(err) { - console.error(err); + //console.error(err); } } } diff --git a/interface/resources/qml/hifi/Card.qml b/interface/resources/qml/hifi/Card.qml index 83bf1e2c54..3ca4f23b55 100644 --- a/interface/resources/qml/hifi/Card.qml +++ b/interface/resources/qml/hifi/Card.qml @@ -133,7 +133,7 @@ Item { } onStatusChanged: { if (status == Image.Error) { - console.log("source: " + source + ": failed to load " + hifiUrl); + console.log("source: " + source + ": failed to load"); source = defaultThumbnail; } } diff --git a/interface/resources/qml/hifi/Desktop.qml b/interface/resources/qml/hifi/Desktop.qml index 4d342fe775..29f83bd8fc 100644 --- a/interface/resources/qml/hifi/Desktop.qml +++ b/interface/resources/qml/hifi/Desktop.qml @@ -103,19 +103,14 @@ OriginalDesktop.Desktop { property bool autoAdd: false function initWebviewProfileHandlers(profile) { - console.log("The webview url in desktop is: " + currentUrl); downloadUrl = currentUrl; if (webViewProfileSetup) return; webViewProfileSetup = true; profile.downloadRequested.connect(function(download){ - console.log("Download start: " + download.state); adaptedPath = File.convertUrlToPath(downloadUrl); tempDir = File.getTempDir(); - console.log("Temp dir created: " + tempDir); download.path = tempDir + "/" + adaptedPath; - console.log("Path where object should download: " + download.path); - console.log("Auto add: " + autoAdd); download.accept(); if (download.state === WebEngineDownloadItem.DownloadInterrupted) { console.log("download failed to complete"); diff --git a/interface/resources/qml/hifi/Pal.qml b/interface/resources/qml/hifi/Pal.qml index 1384cb8711..447751feda 100644 --- a/interface/resources/qml/hifi/Pal.qml +++ b/interface/resources/qml/hifi/Pal.qml @@ -1287,7 +1287,7 @@ Rectangle { connectionsOnlineDot.visible = message.shouldShowDot; break; default: - console.log('Unrecognized message:', JSON.stringify(message)); + console.log('Pal.qml: Unrecognized message'); } } function sortModel() { diff --git a/interface/resources/qml/hifi/RootHttpRequest.qml b/interface/resources/qml/hifi/RootHttpRequest.qml index 0355626996..b1397dfcbf 100644 --- a/interface/resources/qml/hifi/RootHttpRequest.qml +++ b/interface/resources/qml/hifi/RootHttpRequest.qml @@ -20,7 +20,7 @@ Item { // Public function for initiating an http request. // REQUIRES parent to be root to have sendToScript! function request(options, callback) { - console.debug('HttpRequest', JSON.stringify(options)); + console.debug('HttpRequest'); httpCalls[httpCounter] = callback; var message = {method: 'http.request', params: options, id: httpCounter++, jsonrpc: "2.0"}; parent.sendToScript(message); @@ -33,7 +33,7 @@ Item { return; } delete httpCalls[message.id]; - console.debug('HttpRequest response', JSON.stringify(message)); + console.debug('HttpRequest response'); callback(message.error, message.response); } } diff --git a/interface/resources/qml/hifi/SpectatorCamera.qml b/interface/resources/qml/hifi/SpectatorCamera.qml index 4bf80e410b..b716995730 100644 --- a/interface/resources/qml/hifi/SpectatorCamera.qml +++ b/interface/resources/qml/hifi/SpectatorCamera.qml @@ -362,7 +362,7 @@ Rectangle { spectatorCameraPreview.visible = message.setting; break; default: - console.log('Unrecognized message from spectatorCamera.js:', JSON.stringify(message)); + console.log('Unrecognized message from spectatorCamera.js'); } } signal sendToScript(var message); diff --git a/interface/resources/qml/hifi/avatarapp/AdjustWearables.qml b/interface/resources/qml/hifi/avatarapp/AdjustWearables.qml index 5fff14e4a1..7850a400b3 100644 --- a/interface/resources/qml/hifi/avatarapp/AdjustWearables.qml +++ b/interface/resources/qml/hifi/avatarapp/AdjustWearables.qml @@ -246,7 +246,6 @@ Rectangle { anchors.right: parent.right onLinkActivated: { popup.showSpecifyWearableUrl(function(url) { - console.debug('popup.showSpecifyWearableUrl: ', url); addWearable(root.avatarName, url); modified = true; }); diff --git a/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml b/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml index 970d132ba6..8582b9249b 100644 --- a/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml +++ b/interface/resources/qml/hifi/avatarapp/AvatarThumbnail.qml @@ -29,9 +29,6 @@ Item { when: avatarUrl !== '' value: avatarUrl } - onSourceChanged: { - console.debug('avatarImage: source = ', source); - } visible: avatarImage.status !== Image.Loading && avatarImage.status !== Image.Error } diff --git a/interface/resources/qml/hifi/avatarapp/CreateFavoriteDialog.qml b/interface/resources/qml/hifi/avatarapp/CreateFavoriteDialog.qml index 1387c0791a..14c9fb8837 100644 --- a/interface/resources/qml/hifi/avatarapp/CreateFavoriteDialog.qml +++ b/interface/resources/qml/hifi/avatarapp/CreateFavoriteDialog.qml @@ -96,9 +96,6 @@ Rectangle { AvatarThumbnail { id: avatarThumbnail avatarUrl: avatarImageUrl - onAvatarUrlChanged: { - console.debug('CreateFavoritesDialog: onAvatarUrlChanged: ', avatarUrl); - } wearablesCount: avatarWearablesCount } diff --git a/interface/resources/qml/hifi/avatarapp/MessageBox.qml b/interface/resources/qml/hifi/avatarapp/MessageBox.qml index f111303214..fb6bc765f5 100644 --- a/interface/resources/qml/hifi/avatarapp/MessageBox.qml +++ b/interface/resources/qml/hifi/avatarapp/MessageBox.qml @@ -17,9 +17,6 @@ Rectangle { property alias dialogButtons: buttons property string imageSource: null - onImageSourceChanged: { - console.debug('imageSource = ', imageSource) - } property string button1color: hifi.buttons.noneBorderlessGray; property string button1text: '' diff --git a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml index 271aab87d1..a1f9d5a447 100644 --- a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml +++ b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml @@ -1086,7 +1086,7 @@ Rectangle { refreshBuyUI(); break; default: - console.log('Unrecognized message from marketplaces.js:', JSON.stringify(message)); + console.log('Checkout.qml: Unrecognized message from marketplaces.js'); } } signal sendToScript(var message); diff --git a/interface/resources/qml/hifi/commerce/common/sendAsset/SendAsset.qml b/interface/resources/qml/hifi/commerce/common/sendAsset/SendAsset.qml index bb4bb624bc..96114720e0 100644 --- a/interface/resources/qml/hifi/commerce/common/sendAsset/SendAsset.qml +++ b/interface/resources/qml/hifi/commerce/common/sendAsset/SendAsset.qml @@ -1867,7 +1867,7 @@ Item { sendAssetStep.selectedRecipientUserName = message.userName; break; default: - console.log('SendAsset: Unrecognized message from wallet.js:', JSON.stringify(message)); + console.log('SendAsset: Unrecognized message from wallet.js'); } } signal sendSignalToParent(var msg); diff --git a/interface/resources/qml/hifi/commerce/inspectionCertificate/InspectionCertificate.qml b/interface/resources/qml/hifi/commerce/inspectionCertificate/InspectionCertificate.qml index 885838a26e..f495b26e36 100644 --- a/interface/resources/qml/hifi/commerce/inspectionCertificate/InspectionCertificate.qml +++ b/interface/resources/qml/hifi/commerce/inspectionCertificate/InspectionCertificate.qml @@ -597,7 +597,7 @@ Rectangle { resetCert(true); break; default: - console.log('Unrecognized message from marketplaces.js:', JSON.stringify(message)); + console.log('InspectionCertificate.qml: Unrecognized message from marketplaces.js'); } } signal sendToScript(var message); diff --git a/interface/resources/qml/hifi/commerce/purchases/Purchases.qml b/interface/resources/qml/hifi/commerce/purchases/Purchases.qml index e7b541b350..e0b93a83bb 100644 --- a/interface/resources/qml/hifi/commerce/purchases/Purchases.qml +++ b/interface/resources/qml/hifi/commerce/purchases/Purchases.qml @@ -1009,7 +1009,7 @@ Rectangle { try { // Not all calls to onFileOpenChanged() connect an event. Window.browseChanged.disconnect(onFileOpenChanged); } catch (e) { - console.log('Purchases.qml ignoring', e); + console.log('Purchases.qml ignoring'); } if (filename) { Commerce.installApp(filename); @@ -1070,7 +1070,7 @@ Rectangle { http.handleHttpResponse(message); break; default: - console.log('Unrecognized message from marketplaces.js:', JSON.stringify(message)); + console.log('Purchases.qml: Unrecognized message from marketplaces.js'); } } signal sendToScript(var message); diff --git a/interface/resources/qml/hifi/commerce/wallet/Help.qml b/interface/resources/qml/hifi/commerce/wallet/Help.qml index 575edfc34d..bba830e4dd 100644 --- a/interface/resources/qml/hifi/commerce/wallet/Help.qml +++ b/interface/resources/qml/hifi/commerce/wallet/Help.qml @@ -250,7 +250,7 @@ At the moment, there is currently no way to convert HFC to other currencies. Sta function fromScript(message) { switch (message.method) { default: - console.log('Unrecognized message from wallet.js:', JSON.stringify(message)); + console.log('Help.qml: Unrecognized message from wallet.js'); } } signal sendSignalToWallet(var msg); diff --git a/interface/resources/qml/hifi/commerce/wallet/NeedsLogIn.qml b/interface/resources/qml/hifi/commerce/wallet/NeedsLogIn.qml index 03af964830..78670879dd 100644 --- a/interface/resources/qml/hifi/commerce/wallet/NeedsLogIn.qml +++ b/interface/resources/qml/hifi/commerce/wallet/NeedsLogIn.qml @@ -183,7 +183,7 @@ Item { function fromScript(message) { switch (message.method) { default: - console.log('Unrecognized message from wallet.js:', JSON.stringify(message)); + console.log('NeedsLogIn.qml: Unrecognized message from wallet.js'); } } signal sendSignalToWallet(var msg); diff --git a/interface/resources/qml/hifi/commerce/wallet/Wallet.qml b/interface/resources/qml/hifi/commerce/wallet/Wallet.qml index f44e715703..5460e00e3e 100644 --- a/interface/resources/qml/hifi/commerce/wallet/Wallet.qml +++ b/interface/resources/qml/hifi/commerce/wallet/Wallet.qml @@ -799,7 +799,7 @@ Rectangle { } break; default: - console.log('Unrecognized message from wallet.js:', JSON.stringify(message)); + console.log('Wallet.qml: Unrecognized message from wallet.js'); } } signal sendToScript(var message); diff --git a/interface/resources/qml/hifi/dialogs/RunningScripts.qml b/interface/resources/qml/hifi/dialogs/RunningScripts.qml index 9a180a66f6..18ee90ce85 100644 --- a/interface/resources/qml/hifi/dialogs/RunningScripts.qml +++ b/interface/resources/qml/hifi/dialogs/RunningScripts.qml @@ -130,17 +130,14 @@ ScrollingWindow { } function loadScript(script) { - console.log("Load script " + script); scripts.loadOneScript(script); } function reloadScript(script) { - console.log("Reload script " + script); scripts.stopScript(script, true); } function stopScript(script) { - console.log("Stop script " + script); scripts.stopScript(script); } diff --git a/interface/resources/qml/hifi/dialogs/TabletAssetServer.qml b/interface/resources/qml/hifi/dialogs/TabletAssetServer.qml index 0eeb252049..7bdbfca096 100644 --- a/interface/resources/qml/hifi/dialogs/TabletAssetServer.qml +++ b/interface/resources/qml/hifi/dialogs/TabletAssetServer.qml @@ -81,16 +81,16 @@ Rectangle { } function doDeleteFile(paths) { - console.log("Deleting " + paths); + console.log("Deleting paths"); Assets.deleteMappings(paths, function(err) { if (err) { - console.log("Asset browser - error deleting paths: ", paths, err); + console.log("Asset browser - error deleting paths: ", err); - box = errorMessageBox("There was an error deleting:\n" + paths + "\n" + err); + box = errorMessageBox("There was an error deleting:\n" + err); box.selected.connect(reload); } else { - console.log("Asset browser - finished deleting paths: ", paths); + console.log("Asset browser - finished deleting paths"); reload(); } }); @@ -113,15 +113,10 @@ Rectangle { box.selected.connect(reload); } - console.log("Asset browser - renaming " + oldPath + " to " + newPath); - Assets.renameMapping(oldPath, newPath, function(err) { if (err) { - console.log("Asset browser - error renaming: ", oldPath, "=>", newPath, " - error ", err); box = errorMessageBox("There was an error renaming:\n" + oldPath + " to " + newPath + "\n" + err); box.selected.connect(reload); - } else { - console.log("Asset browser - finished rename: ", oldPath, "=>", newPath); } reload(); @@ -280,7 +275,7 @@ Rectangle { gravity = Vec3.multiply(Vec3.fromPolar(Math.PI / 2, 0), 0); } - print("Asset browser - adding asset " + url + " (" + name + ") to world."); + print("Asset browser - adding asset " + name + " to world."); // Entities.addEntity doesn't work from QML, so we use this. Entities.addModelEntity(name, url, "", shapeType, dynamic, collisionless, grabbable, addPosition, gravity); @@ -426,7 +421,7 @@ Rectangle { uploadProgressLabel.text = "In progress..."; }, function(err, path) { - print(err, path); + print(err); if (err === "") { uploadProgressLabel.text = "Upload Complete"; timer.interval = 1000; @@ -437,7 +432,6 @@ Rectangle { uploadOpen = false; }); timer.start(); - console.log("Asset Browser - finished uploading: ", fileUrl); reload(); } else { uploadSpinner.visible = false; @@ -445,7 +439,7 @@ Rectangle { uploadOpen = false; if (err !== -1) { - console.log("Asset Browser - error uploading: ", fileUrl, " - error ", err); + console.log("Asset Browser - error uploading:", err); var box = errorMessageBox("There was an error uploading:\n" + fileUrl + "\n" + err); box.selected.connect(reload); } diff --git a/interface/resources/qml/hifi/dialogs/TabletRunningScripts.qml b/interface/resources/qml/hifi/dialogs/TabletRunningScripts.qml index 018c8f5737..7f67fdfe42 100644 --- a/interface/resources/qml/hifi/dialogs/TabletRunningScripts.qml +++ b/interface/resources/qml/hifi/dialogs/TabletRunningScripts.qml @@ -116,17 +116,14 @@ Rectangle { } function loadScript(script) { - console.log("Load script " + script); scripts.loadOneScript(script); } function reloadScript(script) { - console.log("Reload script " + script); scripts.stopScript(script, true); } function stopScript(script) { - console.log("Stop script " + script); scripts.stopScript(script); } @@ -154,7 +151,6 @@ Rectangle { console.log("Stop all scripts"); for (var index = 0; index < runningScriptsModel.count; index++) { var url = runningScriptsModel.get(index).url; - console.log(url); var fileName = url.substring(url.lastIndexOf('/')+1); if (canEditScript(fileName)) { scripts.stopScript(url); diff --git a/interface/resources/qml/hifi/models/PSFListModel.qml b/interface/resources/qml/hifi/models/PSFListModel.qml index 71b253fb27..b9006bc57c 100644 --- a/interface/resources/qml/hifi/models/PSFListModel.qml +++ b/interface/resources/qml/hifi/models/PSFListModel.qml @@ -130,9 +130,9 @@ ListModel { // Check consistency and call processPage. function handlePage(error, response, cb) { var processed; - console.debug('handlePage', listModelName, additionalFirstPageRequested, error, JSON.stringify(response)); + console.debug('handlePage', listModelName, additionalFirstPageRequested, error); function fail(message) { - console.warn("Warning page fail", listModelName, JSON.stringify(message)); + console.warn("Warning page fail", listModelName); currentPageToRetrieve = -1; requestPending = false; delayedClear = false; diff --git a/interface/resources/qml/hifi/tablet/EditTabView.qml b/interface/resources/qml/hifi/tablet/EditTabView.qml index bf7dd3e66b..f180cf4466 100644 --- a/interface/resources/qml/hifi/tablet/EditTabView.qml +++ b/interface/resources/qml/hifi/tablet/EditTabView.qml @@ -285,7 +285,7 @@ TabBar { selectTab(message.params.id); break; default: - console.warn('Unrecognized message:', JSON.stringify(message)); + console.warn('EditTabView.qml: Unrecognized message'); } } diff --git a/interface/resources/qml/hifi/tablet/EditToolsTabView.qml b/interface/resources/qml/hifi/tablet/EditToolsTabView.qml index 13b1caf8fb..24a586c606 100644 --- a/interface/resources/qml/hifi/tablet/EditToolsTabView.qml +++ b/interface/resources/qml/hifi/tablet/EditToolsTabView.qml @@ -276,7 +276,7 @@ TabBar { selectTab(message.params.id); break; default: - console.warn('Unrecognized message:', JSON.stringify(message)); + console.warn('EditToolsTabView.qml: Unrecognized message'); } } diff --git a/interface/resources/qml/hifi/tablet/tabletWindows/TabletFileDialog.qml b/interface/resources/qml/hifi/tablet/tabletWindows/TabletFileDialog.qml index 871d1c92a9..f4d6a0f6cc 100644 --- a/interface/resources/qml/hifi/tablet/tabletWindows/TabletFileDialog.qml +++ b/interface/resources/qml/hifi/tablet/tabletWindows/TabletFileDialog.qml @@ -68,8 +68,6 @@ Rectangle { signal canceled(); Component.onCompleted: { - console.log("Helper " + helper + " drives " + drives); - fileDialogItem.keyboardEnabled = HMD.active; // HACK: The following lines force the model to initialize properly such that the go-up button @@ -762,7 +760,6 @@ Rectangle { } } - console.log("Selecting " + selection) selectedFile(selection); //root.destroy(); } diff --git a/interface/resources/qml/hifi/tablet/tabletWindows/preferences/TabletBrowsablePreference.qml b/interface/resources/qml/hifi/tablet/tabletWindows/preferences/TabletBrowsablePreference.qml index 8c0e934971..9c767948b8 100644 --- a/interface/resources/qml/hifi/tablet/tabletWindows/preferences/TabletBrowsablePreference.qml +++ b/interface/resources/qml/hifi/tablet/tabletWindows/preferences/TabletBrowsablePreference.qml @@ -72,7 +72,6 @@ Preference { }); browser.selectedFile.connect(function(fileUrl){ - console.log(fileUrl); dataTextField.text = fileDialogHelper.urlToPath(fileUrl); }); diff --git a/scripts/developer/libraries/utils.js b/scripts/developer/libraries/utils.js index 0da9703c87..3f461b13b0 100644 --- a/scripts/developer/libraries/utils.js +++ b/scripts/developer/libraries/utils.js @@ -68,7 +68,6 @@ getEntityUserData = function(id) { results = JSON.parse(properties.userData); } catch(err) { logDebug(err); - logDebug(properties.userData); } } return results ? results : {}; diff --git a/scripts/developer/tests/dynamics/dynamicsTests.js b/scripts/developer/tests/dynamics/dynamicsTests.js index db089f09ee..a23c46744b 100644 --- a/scripts/developer/tests/dynamics/dynamicsTests.js +++ b/scripts/developer/tests/dynamics/dynamicsTests.js @@ -693,7 +693,6 @@ } function onWebEventReceived(eventString) { - print("received web event: " + JSON.stringify(eventString)); if (typeof eventString === "string") { var event; try { diff --git a/scripts/developer/tests/entitySpawnTool.js b/scripts/developer/tests/entitySpawnTool.js index d88933b867..a83a1f8d73 100644 --- a/scripts/developer/tests/entitySpawnTool.js +++ b/scripts/developer/tests/entitySpawnTool.js @@ -33,7 +33,6 @@ ENTITY_SPAWNER = function (properties) { function makeEntity(properties) { var entity = Entities.addEntity(properties); - // print("spawning entity: " + JSON.stringify(properties)); return { update: function (properties) { diff --git a/scripts/developer/tests/loadedMachine.js b/scripts/developer/tests/loadedMachine.js index 375e3d8004..41ad98518d 100644 --- a/scripts/developer/tests/loadedMachine.js +++ b/scripts/developer/tests/loadedMachine.js @@ -37,7 +37,7 @@ var scripts = scriptData.filter(function (datum) { return datum.name !== 'defaul // If defaultScripts.js is running, we leave it running, because restarting it safely is a mess. var otherScripts = scripts.filter(function (path) { return path !== thisPath; }); var numberLeftRunning = scriptData.length - otherScripts.length; -print('initially running', otherScripts.length, 'scripts. Leaving', numberLeftRunning, 'and stopping', otherScripts); +print('initially running', otherScripts.length, 'scripts. Leaving', numberLeftRunning, 'and stopping otherScripts'); var typedEntities = {Light: [], ParticleEffect: []}; var interestingTypes = Object.keys(typedEntities); var propertiedEntities = {dynamic: []}; diff --git a/scripts/developer/tests/performance/crowd-agent.js b/scripts/developer/tests/performance/crowd-agent.js index 9db4a112f3..a76ed620eb 100644 --- a/scripts/developer/tests/performance/crowd-agent.js +++ b/scripts/developer/tests/performance/crowd-agent.js @@ -132,7 +132,7 @@ function messageHandler(channel, messageString, senderID) { try { message = JSON.parse(messageString); } catch (e) { - print(e); + } switch (message.key) { case "HELO": diff --git a/scripts/developer/tests/performance/domain-check.js b/scripts/developer/tests/performance/domain-check.js index 398bc4fd0a..c715a2ada8 100644 --- a/scripts/developer/tests/performance/domain-check.js +++ b/scripts/developer/tests/performance/domain-check.js @@ -107,7 +107,7 @@ function messageHandler(channel, messageString, senderID) { try { message = JSON.parse(messageString); } catch (e) { - print(e); + } switch (message.key) { case "hello": @@ -149,7 +149,7 @@ function messageHandler(channel, messageString, senderID) { Window.alert("Someone else is summoning avatars."); break; default: - print("crowd-agent received unrecognized message:", messageString); + print("crowd-agent received unrecognized message"); } } Messages.subscribe(MESSAGE_CHANNEL); diff --git a/scripts/developer/tests/performance/summon.js b/scripts/developer/tests/performance/summon.js index 8e888fe9bc..663a549a2a 100644 --- a/scripts/developer/tests/performance/summon.js +++ b/scripts/developer/tests/performance/summon.js @@ -73,7 +73,7 @@ function messageHandler(channel, messageString, senderID) { try { message = JSON.parse(messageString); } catch (e) { - print(e); + } switch (message.key) { case "hello": @@ -121,7 +121,7 @@ function messageHandler(channel, messageString, senderID) { Window.alert("Someone else is summoning avatars."); break; default: - print("crowd summon.js received unrecognized message:", messageString); + print("crowd summon.js received unrecognized message"); } } Messages.subscribe(MESSAGE_CHANNEL); diff --git a/scripts/developer/tests/unit_tests/assetUnitTests.js b/scripts/developer/tests/unit_tests/assetUnitTests.js index 5d43eaf1de..b9bb66e4d3 100644 --- a/scripts/developer/tests/unit_tests/assetUnitTests.js +++ b/scripts/developer/tests/unit_tests/assetUnitTests.js @@ -327,8 +327,8 @@ describe("Assets", function () { expect(hash).toMatch(IS_ASSET_HASH_REGEX); context.definedHash = hash; // used in later tests context.definedContent = SAMPLE_CONTENTS; - print('context.definedHash = ' + context.definedHash); - print('context.definedContent = ' + context.definedContent); + //print('context.definedHash = ' + context.definedHash); + //print('context.definedContent = ' + context.definedContent); done(); }); }); @@ -339,7 +339,7 @@ describe("Assets", function () { if (error) error += ' ('+JSON.stringify([SAMPLE_FILE_PATH, context.definedHash])+')'; expect(error).toBe(null); context.definedPath = SAMPLE_FILE_PATH; - print('context.definedPath = ' + context.definedPath); + //print('context.definedPath = ' + context.definedPath); done(); }); }); diff --git a/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorAPIException.js b/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorAPIException.js index bbe694b578..62b861ae8f 100644 --- a/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorAPIException.js +++ b/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorAPIException.js @@ -2,12 +2,12 @@ // test module method exception being thrown within main constructor (function() { var apiMethod = Script.require('../exceptions/exceptionInFunction.js'); - print(Script.resolvePath(''), "apiMethod", apiMethod); + print("apiMethod", apiMethod); // this next line throws from within apiMethod print(apiMethod()); return { preload: function(uuid) { - print("entityConstructorAPIException::preload -- never seen --", uuid, Script.resolvePath('')); + print("entityConstructorAPIException::preload -- never seen --", uuid); }, }; }); diff --git a/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorRequireException.js b/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorRequireException.js index 5872bce529..340b7986a0 100644 --- a/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorRequireException.js +++ b/scripts/developer/tests/unit_tests/moduleTests/entity/entityConstructorRequireException.js @@ -4,7 +4,7 @@ var mod = Script.require('../exceptions/exception.js'); return { preload: function(uuid) { - print("entityConstructorRequireException::preload (never happens)", uuid, Script.resolvePath(''), mod); + print("entityConstructorRequireException::preload (never happens)", uuid, mod); }, }; }); diff --git a/scripts/developer/tests/unit_tests/moduleTests/entity/entityPreloadAPIError.js b/scripts/developer/tests/unit_tests/moduleTests/entity/entityPreloadAPIError.js index eaee178b0a..2dac86947b 100644 --- a/scripts/developer/tests/unit_tests/moduleTests/entity/entityPreloadAPIError.js +++ b/scripts/developer/tests/unit_tests/moduleTests/entity/entityPreloadAPIError.js @@ -2,12 +2,12 @@ // test module method exception being thrown within preload (function() { var apiMethod = Script.require('../exceptions/exceptionInFunction.js'); - print(Script.resolvePath(''), "apiMethod", apiMethod); + print("apiMethod", apiMethod); return { preload: function(uuid) { // this next line throws from within apiMethod print(apiMethod()); - print("entityPreloadAPIException::preload -- never seen --", uuid, Script.resolvePath('')); + print("entityPreloadAPIException::preload -- never seen --", uuid); }, }; }); diff --git a/scripts/developer/tests/unit_tests/moduleUnitTests.js b/scripts/developer/tests/unit_tests/moduleUnitTests.js index 6810dd8b6d..8dd927a020 100644 --- a/scripts/developer/tests/unit_tests/moduleUnitTests.js +++ b/scripts/developer/tests/unit_tests/moduleUnitTests.js @@ -328,7 +328,6 @@ function instrumentTestrunner() { return base; } var rel = base.replace(/[^\/]+$/, id); - console.info('rel', rel); return require.resolve(rel); }, require: function(mod) { @@ -338,13 +337,13 @@ function instrumentTestrunner() { Script.require.cache = require.cache; Script.require.resolve = function(mod) { if (mod === '.' || /^\.\.($|\/)/.test(mod)) { - throw new Error("Cannot find module '"+mod+"' (is dir)"); + throw new Error("Cannot find module (is dir)"); } var path = require.resolve(mod); // console.info('node-require-reoslved', mod, path); try { if (require('fs').lstatSync(path).isDirectory()) { - throw new Error("Cannot find module '"+path+"' (is directory)"); + throw new Error("Cannot find module (is directory)"); } // console.info('!path', path); } catch (e) { diff --git a/scripts/developer/tests/unit_tests/scriptUnitTests.js b/scripts/developer/tests/unit_tests/scriptUnitTests.js index fa8cb44608..51d7065fdd 100644 --- a/scripts/developer/tests/unit_tests/scriptUnitTests.js +++ b/scripts/developer/tests/unit_tests/scriptUnitTests.js @@ -128,12 +128,12 @@ describe('Script', function () { function run() {} function instrument_testrunner() { if (typeof describe === 'undefined') { - print('instrumenting jasmine', Script.resolvePath('')); + print('instrumenting jasmine'); Script.include('../../libraries/jasmine/jasmine.js'); Script.include('../../libraries/jasmine/hifi-boot.js'); jasmine.getEnv().addReporter({ jasmineDone: Script.stop }); run = function() { - print('executing jasmine', Script.resolvePath('')); + print('executing jasmine'); jasmine.getEnv().execute(); }; } diff --git a/scripts/developer/utilities/render/debugHighlight.js b/scripts/developer/utilities/render/debugHighlight.js index 664af836a9..da6b95746b 100644 --- a/scripts/developer/utilities/render/debugHighlight.js +++ b/scripts/developer/utilities/render/debugHighlight.js @@ -124,7 +124,7 @@ function fromQml(message) { tokens = message.split(' ') - print("Received '"+message+"' from hightlight.qml") + print("Received message from QML") if (tokens[0]=="highlight") { currentSelectionName = tokens[1]; print("Switching to highlight name "+currentSelectionName) diff --git a/scripts/developer/utilities/render/debugTransition.js b/scripts/developer/utilities/render/debugTransition.js index 450b2e3ac9..491905a2ef 100644 --- a/scripts/developer/utilities/render/debugTransition.js +++ b/scripts/developer/utilities/render/debugTransition.js @@ -190,7 +190,6 @@ function fromQml(message) { tokens = message.split('*') - //print("Received '"+message+"' from transition.qml") command = tokens[0].toLowerCase() if (command=="category") { editedCategory = parseInt(tokens[1]) diff --git a/scripts/developer/utilities/render/photobooth/photoboothApp.js b/scripts/developer/utilities/render/photobooth/photoboothApp.js index 154028f091..1d70b2acd1 100644 --- a/scripts/developer/utilities/render/photobooth/photoboothApp.js +++ b/scripts/developer/utilities/render/photobooth/photoboothApp.js @@ -47,7 +47,7 @@ function onWebEventReceived(event) { - print("photobooth.js received a web event:" + event); + print("photobooth.js received a web event"); // Converts the event to a JavasScript Object if (typeof event === "string") { event = JSON.parse(event); diff --git a/scripts/developer/utilities/tests/editEntityStressTest.js b/scripts/developer/utilities/tests/editEntityStressTest.js index 61f10c5d80..14254be56e 100644 --- a/scripts/developer/utilities/tests/editEntityStressTest.js +++ b/scripts/developer/utilities/tests/editEntityStressTest.js @@ -30,7 +30,6 @@ var TEST_ENTITY_NAME = "EntitySpawnTest"; (function () { this.makeEntity = function (properties) { var entity = Entities.addEntity(properties); - // print("spawning entity: " + JSON.stringify(properties)); return { update: function (properties) { diff --git a/scripts/developer/utilities/workload/workload.js b/scripts/developer/utilities/workload/workload.js index bdd33dcc5a..ada3cbbf09 100644 --- a/scripts/developer/utilities/workload/workload.js +++ b/scripts/developer/utilities/workload/workload.js @@ -125,7 +125,6 @@ Script.include("./test_physics_scene.js") function fromQml(message) { - print("fromQml: " + JSON.stringify(message)) switch (message.method) { case "createScene": createScene(); diff --git a/scripts/modules/appUi.js b/scripts/modules/appUi.js index e267293977..3e8e0b1008 100644 --- a/scripts/modules/appUi.js +++ b/scripts/modules/appUi.js @@ -165,7 +165,7 @@ function AppUi(properties) { var urlOfRequest = optionalParams.urlOfRequest; if (error || (response.status !== 'success')) { - print("Error: unable to get", urlOfRequest, error || response.status); + print("Error: unable to complete request from URL. Error:", error || response.status); startNotificationTimer(indexOfRequest); return; } @@ -180,7 +180,7 @@ function AppUi(properties) { } else { notificationData = that.notificationDataProcessPage[indexOfRequest](response); } - console.debug(that.buttonName, that.notificationPollEndpoint[indexOfRequest], + console.debug(that.buttonName, 'truncated notification data for processing:', JSON.stringify(notificationData).substring(0, MAX_LOG_LENGTH_CHARACTERS)); that.notificationPollCallback[indexOfRequest](notificationData); @@ -226,8 +226,6 @@ function AppUi(properties) { } Settings.setValue(settingsKey, currentTimestamp); - console.debug(that.buttonName, 'polling for notifications at endpoint', url); - request({ json: true, uri: url diff --git a/scripts/modules/request.js b/scripts/modules/request.js index 37f3ac0d7b..5464b1bffa 100644 --- a/scripts/modules/request.js +++ b/scripts/modules/request.js @@ -75,9 +75,3 @@ module.exports = { httpRequest.send(options.body || null); } }; - -// =========================================================================================== -// @function - debug logging -function debug() { - print('RequestModule | ' + [].slice.call(arguments).join(' ')); -} diff --git a/scripts/system/avatarapp.js b/scripts/system/avatarapp.js index 44f10396ca..e2f82eccfd 100644 --- a/scripts/system/avatarapp.js +++ b/scripts/system/avatarapp.js @@ -320,7 +320,7 @@ function fromQml(message) { // messages are {method, params}, like json-rpc. See settings = getMyAvatarSettings(); break; default: - print('Unrecognized message from AvatarApp.qml:', JSON.stringify(message)); + print('Unrecognized message from AvatarApp.qml'); } } diff --git a/scripts/system/commerce/wallet.js b/scripts/system/commerce/wallet.js index 9fb336f79c..5e0cdbb94b 100644 --- a/scripts/system/commerce/wallet.js +++ b/scripts/system/commerce/wallet.js @@ -540,7 +540,7 @@ function fromQml(message) { // Handled elsewhere, don't log. break; default: - print('Unrecognized message from QML:', JSON.stringify(message)); + print('wallet.js: Unrecognized message from QML'); } } diff --git a/scripts/system/edit.js b/scripts/system/edit.js index 6425806771..ab2ecfa23e 100644 --- a/scripts/system/edit.js +++ b/scripts/system/edit.js @@ -2334,11 +2334,7 @@ var PropertiesTool = function (opts) { return; } var i, properties, dY, diff, newPosition; - if (data.type === "print") { - if (data.message) { - print(data.message); - } - } else if (data.type === "update") { + if (data.type === "update") { selectionManager.saveProperties(); if (selectionManager.selections.length > 1) { for (i = 0; i < selectionManager.selections.length; i++) { @@ -2725,7 +2721,7 @@ entityListTool.webView.webEventReceived.connect(function(data) { try { data = JSON.parse(data); } catch(e) { - print("edit.js: Error parsing JSON: " + e.name + " data " + data); + print("edit.js: Error parsing JSON"); return; } diff --git a/scripts/system/html/js/entityProperties.js b/scripts/system/html/js/entityProperties.js index 78de0d075a..923c336aa1 100644 --- a/scripts/system/html/js/entityProperties.js +++ b/scripts/system/html/js/entityProperties.js @@ -1318,15 +1318,6 @@ var selectedEntityProperties; var lastEntityID = null; var createAppTooltip = new CreateAppTooltip(); -function debugPrint(message) { - EventBridge.emitWebEvent( - JSON.stringify({ - type: "print", - message: message - }) - ); -} - /** * GENERAL PROPERTY/GROUP FUNCTIONS diff --git a/scripts/system/html/js/marketplacesInject.js b/scripts/system/html/js/marketplacesInject.js index 28451a14cb..1bfa9d4b20 100644 --- a/scripts/system/html/js/marketplacesInject.js +++ b/scripts/system/html/js/marketplacesInject.js @@ -546,18 +546,9 @@ data = {}; } - // Extract status message. - if (data.hasOwnProperty("message") && data.message !== null) { - statusMessage = data.message; - console.log("Clara.io FBX: " + statusMessage); - } - // Extract zip file URL. if (data.hasOwnProperty("files") && data.files.length > 0) { zipFileURL = data.files[0].url; - if (zipFileURL.slice(-4) !== ".zip") { - console.log(JSON.stringify(data)); // Data for debugging. - } } } } @@ -587,15 +578,11 @@ var HTTP_OK = 200; if (this.status !== HTTP_OK) { - statusMessage = "Zip file request terminated with " + this.status + " " + this.statusText; - console.log("ERROR: Clara.io FBX: " + statusMessage); EventBridge.emitWebEvent(JSON.stringify({ type: CLARA_IO_STATUS, status: statusMessage })); } else if (zipFileURL.slice(-4) !== ".zip") { - statusMessage = "Error creating zip file for download."; - console.log("ERROR: Clara.io FBX: " + statusMessage + ": " + zipFileURL); EventBridge.emitWebEvent(JSON.stringify({ type: CLARA_IO_STATUS, status: (statusMessage + ": " + zipFileURL) @@ -604,15 +591,12 @@ EventBridge.emitWebEvent(JSON.stringify({ type: CLARA_IO_DOWNLOAD })); - console.log("Clara.io FBX: File download initiated for " + zipFileURL); } xmlHttpRequest = null; } isPreparing = true; - - console.log("Clara.io FBX: Request zip file for " + uuid); EventBridge.emitWebEvent(JSON.stringify({ type: CLARA_IO_STATUS, status: "Initiating download" diff --git a/scripts/system/libraries/connectionUtils.js b/scripts/system/libraries/connectionUtils.js index 166d379330..7b988d3117 100644 --- a/scripts/system/libraries/connectionUtils.js +++ b/scripts/system/libraries/connectionUtils.js @@ -20,7 +20,7 @@ function requestJSON(url, callback) { // callback(data) if successfull. Logs oth uri: url }, function (error, response) { if (error || (response.status !== 'success')) { - print("Error: unable to get", url, error || response.status); + print("Error: unable to get URL", error || response.status); return; } callback(response.data); diff --git a/scripts/system/libraries/entityList.js b/scripts/system/libraries/entityList.js index 585820d32f..ce913031b9 100644 --- a/scripts/system/libraries/entityList.js +++ b/scripts/system/libraries/entityList.js @@ -218,7 +218,7 @@ EntityListTool = function(shouldUseEditTabletApp) { try { data = JSON.parse(data); } catch(e) { - print("entityList.js: Error parsing JSON: " + e.name + " data " + data); + print("entityList.js: Error parsing JSON"); return; } diff --git a/scripts/system/libraries/entitySelectionTool.js b/scripts/system/libraries/entitySelectionTool.js index 3bb36d632e..cd92cce922 100644 --- a/scripts/system/libraries/entitySelectionTool.js +++ b/scripts/system/libraries/entitySelectionTool.js @@ -54,7 +54,7 @@ SelectionManager = (function() { try { messageParsed = JSON.parse(message); } catch (err) { - print("ERROR: entitySelectionTool.handleEntitySelectionToolUpdates - got malformed message: " + message); + print("ERROR: entitySelectionTool.handleEntitySelectionToolUpdates - got malformed message"); return; } diff --git a/scripts/system/libraries/utils.js b/scripts/system/libraries/utils.js index f8928dd74a..c0a52a45c6 100644 --- a/scripts/system/libraries/utils.js +++ b/scripts/system/libraries/utils.js @@ -102,7 +102,6 @@ getEntityUserData = function(id) { results = JSON.parse(properties.userData); } catch(err) { logDebug(err); - logDebug(properties.userData); } } return results ? results : {}; diff --git a/scripts/system/marketplaces/marketplaces.js b/scripts/system/marketplaces/marketplaces.js index 8bfd776971..865ee89fe4 100644 --- a/scripts/system/marketplaces/marketplaces.js +++ b/scripts/system/marketplaces/marketplaces.js @@ -653,7 +653,7 @@ var onQmlMessageReceived = function onQmlMessageReceived(message) { case 'giftAsset': break; default: - print('Unrecognized message from Checkout.qml: ' + JSON.stringify(message)); + print('marketplaces.js: Unrecognized message from Checkout.qml'); } }; diff --git a/scripts/system/pal.js b/scripts/system/pal.js index 341ce9ebc8..141ea03330 100644 --- a/scripts/system/pal.js +++ b/scripts/system/pal.js @@ -326,7 +326,7 @@ function fromQml(message) { // messages are {method, params}, like json-rpc. See ui.messagesWaiting(shouldShowDot); break; default: - print('Unrecognized message from Pal.qml:', JSON.stringify(message)); + print('Unrecognized message from Pal.qml'); } } @@ -347,7 +347,7 @@ function requestJSON(url, callback) { // callback(data) if successfull. Logs oth uri: url }, function (error, response) { if (error || (response.status !== 'success')) { - print("Error: unable to get", url, error || response.status); + print("Error: unable to get request", error || response.status); return; } callback(response.data); diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index ed6ff80398..946de6df0f 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -261,7 +261,6 @@ function onMessage(message) { } break; case 'removeFromStoryIDsToMaybeDelete': - console.log("Facebook OR Twitter button clicked for story_id " + message.story_id); removeFromStoryIDsToMaybeDelete(message.story_id); break; default: diff --git a/scripts/tutorials/entity_scripts/ambientSound.js b/scripts/tutorials/entity_scripts/ambientSound.js index eab268f9bb..cbd94c22e4 100644 --- a/scripts/tutorials/entity_scripts/ambientSound.js +++ b/scripts/tutorials/entity_scripts/ambientSound.js @@ -71,13 +71,13 @@ try { var data = JSON.parse(props.userData); } catch(e) { - debugPrint("unable to parse userData JSON string: " + props.userData); + debugPrint("unable to parse userData JSON string"); this.cleanup(); return; } if (data.soundURL && !(soundURL === data.soundURL)) { soundURL = data.soundURL; - debugPrint("Read ambient sound URL: " + soundURL); + debugPrint("Read ambient sound URL"); } if (data.range && !(range === data.range)) { range = data.range; @@ -113,7 +113,7 @@ ambientSound = SoundCache.getSound(soundURL); } else if (resource.state === Resource.State.FAILED) { resource.stateChanged.disconnect(onStateChanged); - debugPrint("Failed to download ambient sound: " + soundURL); + debugPrint("Failed to download ambient sound"); } } resource.stateChanged.connect(onStateChanged); @@ -151,7 +151,7 @@ var data = JSON.parse(props.userData); data.disabled = !data.disabled; - debugPrint(hint + " -- triggering ambient sound " + (data.disabled ? "OFF" : "ON") + " (" + data.soundURL + ")"); + debugPrint(hint + " -- triggering ambient sound " + (data.disabled ? "OFF" : "ON")); this.cleanup(); @@ -236,7 +236,7 @@ soundOptions.orientation = rotation; soundOptions.volume = volume; if (!soundPlaying && ambientSound && ambientSound.downloaded) { - debugPrint("Starting ambient sound: " + soundURL + " (duration: " + ambientSound.duration + ")"); + debugPrint("Starting ambient sound: (duration: " + ambientSound.duration + ")"); soundPlaying = Audio.playSound(ambientSound, soundOptions); } else if (soundPlaying && soundPlaying.playing) { soundPlaying.setOptions(soundOptions); @@ -244,7 +244,7 @@ } else if (soundPlaying && soundPlaying.playing && (distance > range * HYSTERESIS_FRACTION)) { soundPlaying.stop(); soundPlaying = false; - debugPrint("Out of range, stopping ambient sound: " + soundURL); + debugPrint("Out of range, stopping ambient sound"); } };