From d3e2a2f52e45c40eaaf56a8dbb8f3a49de4b5a2c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 7 Mar 2016 11:59:36 +0100 Subject: [PATCH] make verbose logging switchable via a conditional --- www/common/realtime-input.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/realtime-input.js b/www/common/realtime-input.js index ecd19e015..db0b6126c 100644 --- a/www/common/realtime-input.js +++ b/www/common/realtime-input.js @@ -30,7 +30,11 @@ define([ var debug = function (x) { console.log(x); }, warn = function (x) { console.error(x); }, - verbose = function (x) { console.log(x); }; + verbose = function (x) { + if (window.verboseLogging) { + console.log(x); + } + }; // verbose = function () {}; // comment out to enable verbose logging // ------------------ Trapping Keyboard Events ---------------------- //