From 389754136632429781bdb29ed7b2ec1a443006f0 Mon Sep 17 00:00:00 2001 From: Koenkk Date: Thu, 5 Jul 2018 20:06:38 +0200 Subject: [PATCH] Log zigbee-shepherd information on startup. #178 --- lib/zigbee.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/zigbee.js b/lib/zigbee.js index c3c3950a2b..122eec8f5d 100644 --- a/lib/zigbee.js +++ b/lib/zigbee.js @@ -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); } }); @@ -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); }