Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Update WyzeAPI.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RMCob authored Jan 11, 2022
1 parent 655bbc3 commit 90cb35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WyzeAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = class WyzeAPI {
this.access_token = '';
this.refresh_token = '';

this.dumpData = true;
this.dumpData = false; // Set this to true to log the Wyze object data blob one time at startup.
}

getRequestData(data = {}) {
Expand Down Expand Up @@ -96,7 +96,7 @@ module.exports = class WyzeAPI {
this.log.debug(`API response: ${JSON.stringify(result.data)}`);
if (this.dumpData) {
this.log.info(`API response: ${JSON.stringify(result.data)}`);
this.dumpData = false;
this.dumpData = false; // Only want to do this once at start-up
}
} catch (e) {
this.log.error(`Request failed: ${e}`);
Expand Down

0 comments on commit 90cb35f

Please sign in to comment.