Skip to content

Commit

Permalink
Respect debug config
Browse files Browse the repository at this point in the history
  • Loading branch information
dwaan committed May 10, 2022
1 parent f8307ba commit 35019df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ class ADBPlugin {
* @param {string} text text to display in Homebridge log
*/
displayDebug(text) {
this.log.info(`\x1b[2m${this.name} - ${text}\x1b[0m`);
if (this.debug) this.log.info(`\x1b[2m${this.name} - ${text}\x1b[0m`);
}

/**
Expand Down

0 comments on commit 35019df

Please sign in to comment.