add debugLog function to make debug logging a one-liner
Issue #25
resolved
create function debugLog(logobject) that checks for debug flag and global search and replace instances of 'if(sessionstorage.getItem("debug"logging"))...' with call to function
Comments (2)
-
reporter -
reporter - changed status to resolved
done.
use debugLog(logobject) to log to console when debug is true (in uri or in settings.js)
- Log in to comment
found bug where debug was true even if set to false (the check only looked for key, not value) - if debug_logging was true and then set to false, key was read and check resulted in true. Fixed.
function debugLog created, will check and echo passed object only if debug is set.
cannot globally search and replace because some console.log entries are there regardless of debug_logging value.