Skip to content

Commit

Permalink
Log zigbee-shepherd information on startup. #178
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 5, 2018
1 parent 0eee507 commit 3897541
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/zigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ class Zigbee {
);
callback(error);
} else {
logger.info('zigbee-shepherd started');
this._logStartupInfo();
callback(null);
}
});
}, 60 * 1000);
} else {
logger.info('zigbee-shepherd started');
this._logStartupInfo();
callback(null);
}
});
Expand All @@ -66,6 +66,11 @@ class Zigbee {
this.onMessage = onMessage;
}

_logStartupInfo() {
logger.info('zigbee-shepherd started');
logger.debug(`zigbee-shepherd info: ${JSON.stringify(this.shepherd.info())}`);
}

softReset(callback) {
this.shepherd.reset('soft', callback);
}
Expand Down

0 comments on commit 3897541

Please sign in to comment.