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

Reduce logging level of garage state retrieval #193

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ HttpWebHookGarageDoorOpenerAccessory.prototype.changeFromServer = function(urlPa
}

HttpWebHookGarageDoorOpenerAccessory.prototype.getTargetDoorState = function(callback) {
this.log("Getting current Target Door State for '%s'...", this.id);
this.log.debug("Getting current Target Door State for '%s'...", this.id);
var state = this.storage.getItemSync("http-webhook-target-door-state-" + this.id);
if (state === undefined) {
state = Characteristic.TargetDoorState.CLOSED;
Expand Down Expand Up @@ -118,7 +118,7 @@ HttpWebHookGarageDoorOpenerAccessory.prototype.setTargetDoorState = function(new
};

HttpWebHookGarageDoorOpenerAccessory.prototype.getCurrentDoorState = function(callback) {
this.log("Getting Current Door State for '%s'...", this.id);
this.log.debug("Getting Current Door State for '%s'...", this.id);
var state = this.storage.getItemSync("http-webhook-current-door-state-" + this.id);
if (state === undefined) {
state = Characteristic.CurrentDoorState.CLOSED;
Expand All @@ -127,7 +127,7 @@ HttpWebHookGarageDoorOpenerAccessory.prototype.getCurrentDoorState = function(ca
};

HttpWebHookGarageDoorOpenerAccessory.prototype.getObstructionDetected = function(callback) {
this.log("Getting Obstruction Detected for '%s'...", this.id);
this.log.debug("Getting Obstruction Detected for '%s'...", this.id);
var state = this.storage.getItemSync("http-webhook-obstruction-detected-" + this.id);
if (state === undefined) {
state = false;
Expand All @@ -139,4 +139,4 @@ HttpWebHookGarageDoorOpenerAccessory.prototype.getServices = function() {
return [ this.service, this.informationService ];
};

module.exports = HttpWebHookGarageDoorOpenerAccessory;
module.exports = HttpWebHookGarageDoorOpenerAccessory;