Expected Behaviour
When calling configure without an explicit {... "log" : true ...} I would expect no logging, but I get it anyway.
//without logging
alloy("configure", {
"propertyID": "sdi-orbital",
"collectionUrl": ""
})
.then(function(value) {
console.log("alloy configure success", value);
})
.catch(function(error) {
console.log("alloy configure error", error);
})
//////////////////////////////////////////////////////
// Result
//////////////////////////////////////////////////////
[alloy] Runtime configuration:
{
"propertyID": "sdi-orbital",
"collectionUrl": "",
"edgeDomain": "edgegateway.azurewebsites.net",
"shouldStoreCollectedData": 1,
"device": "Chrome-Mac",
"idSyncsEnabled": true,
"destinationsEnabled": true,
"context": [
"web",
"device",
"environment",
"placeContext"
]
}
airbrake.min.js:2 alloy configure success undefined
Promise {: undefined}
//////////////////////////////////////////////////////
//with logging
alloy("configure", {
"propertyID": "sdi-orbital",
"collectionUrl": "",
"log": true
})
.then(function(value) {
console.log("alloy configure success", value);
})
.catch(function(error) {
console.log("alloy configure error", error);
})
//////////////////////////////////////////////////////
// Result - Pretty much the same as above but this one has the log:true
setting
//////////////////////////////////////////////////////
[alloy] Runtime configuration:
{
"propertyID": "sdi-orbital",
"collectionUrl": "",
"log": true,
"edgeDomain": "edgegateway.azurewebsites.net",
"shouldStoreCollectedData": 1,
"device": "Chrome-Mac",
"idSyncsEnabled": true,
"destinationsEnabled": true,
"context": [
"web",
"device",
"environment",
"placeContext"
]
}
airbrake.min.js:2 alloy configure success undefined
Promise {: undefined}
//////////////////////////////////////////////////////
//with logging explicitly off
alloy("configure", {
"propertyID": "sdi-orbital",
"collectionUrl": "",
"log": false
})
.then(function(value) {
console.log("alloy configure success", value);
})
.catch(function(error) {
console.log("alloy configure error", error);
})
//////////////////////////////////////////////////////
// Result - No logging
//////////////////////////////////////////////////////
Promise {}
VM2334:8 alloy configure success undefined