diff --git a/CHANGELOG.md b/CHANGELOG.md index e071deb..e5aa83b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,15 +2,15 @@ --- -## Release 1.8 +## Release 2.0 -Tag: v1.8 +Tag: v2.0 Date: Month DD, 2022 -URL: +URL: Commit: <> - Fixed bug in debugging-enabled check (no issue). -- +- Issue [#69](https://github.com/KCarlile/flashchord/issues/69): Fix logging redundancy ## Release 1.7 diff --git a/js/utils.js b/js/utils.js index c69e013..3a86b9e 100644 --- a/js/utils.js +++ b/js/utils.js @@ -13,16 +13,12 @@ function logger($message) { // start a new block of logging with a heavy line if debugging is enabled function logger_new() { - if ((typeof DEBUG !== "undefined") && DEBUG) { - console.log("=========="); - } + logger("=========="); } // start a new sub-block of logging with a light line if debugging is enabled function logger_break() { - if ((typeof DEBUG !== "undefined") && DEBUG) { - console.log("----------"); - } + logger("----------"); } // get a random value from an array