From 63b4b1338774709cf1b3f8d9b6887b837f3ad780 Mon Sep 17 00:00:00 2001 From: Peter Snyder Date: Sat, 14 Oct 2017 16:17:47 -0500 Subject: [PATCH] only log debugging information about read only properties when logging is enabled --- content_scripts/src/proxyblock.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content_scripts/src/proxyblock.js b/content_scripts/src/proxyblock.js index cf8ac08..2ca7c97 100644 --- a/content_scripts/src/proxyblock.js +++ b/content_scripts/src/proxyblock.js @@ -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; } };