make verbose logging switchable via a conditional

pull/1/head
ansuz 9 years ago
parent 1c54af69a1
commit d3e2a2f52e

@ -30,7 +30,11 @@ define([
var debug = function (x) { console.log(x); }, var debug = function (x) { console.log(x); },
warn = function (x) { console.error(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 // verbose = function () {}; // comment out to enable verbose logging
// ------------------ Trapping Keyboard Events ---------------------- // // ------------------ Trapping Keyboard Events ---------------------- //

Loading…
Cancel
Save