Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #69: Fixing logging redundancy. #78

Merged
merged 1 commit into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

---

## Release 1.8
## Release 2.0

Tag: v1.8
Tag: v2.0
Date: Month DD, 2022
URL: <https://github.com/KCarlile/flashchord/releases/tag/v1.8>
URL: <https://github.com/KCarlile/flashchord/releases/tag/v2.0>
Commit: <>

- Fixed bug in debugging-enabled check (no issue).
-
- Issue [#69](https://github.com/KCarlile/flashchord/issues/69): Fix logging redundancy

## Release 1.7

Expand Down
8 changes: 2 additions & 6 deletions js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down