only log debugging information about read only properties when logging is enabled

This commit is contained in:
Peter Snyder 2017-10-14 16:17:47 -05:00
parent bff8a80c19
commit 63b4b13387

View file

@ -136,7 +136,9 @@
parentRef[lastPropertyName] = defaultBlockingProxy;
return true;
} catch (e) {
console.log("Error instrumenting " + keyPath + ": " + e);
if (shouldLog) {
console.log("Error instrumenting " + keyPath + ": " + e);
}
return false;
}
};