Hi guys,
During startup of Pimatic I can see an error logged in the logfile:
12:22:42.226 [pimatic-telegram] debug: Listener enabled ruleset command: ' test '
12:22:42.229 [pimatic-telegram] debug: TelegramReceiverDevice::constructor => Mapping Telegram predicate command: test to TelegramActionHandler for rule.id: telegram-test
12:22:42.365 [pimatic-telegram] debug: Listener enabled ruleset command: ' Iemand '
12:22:42.366 [pimatic-telegram] debug: TelegramReceiverDevice::constructor => Mapping Telegram predicate command: Iemand to TelegramActionHandler for rule.id: telegram-karin-thuis
(node) warning: possible EventEmitter memory leak detected. 201 variableValueChanged listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at VariableManager.addListener (events.js:239:17)
at VariableManager.notifyOnChange (/home/pi/pimatic-app/node_modules/pimatic/lib/variables.coffee:748:8)
at /home/pi/pimatic-app/node_modules/pimatic-chronotherm/chronotherm.coffee:221:29
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:638:18)
at null._onTimeout (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/timers.js:26:46)
at Timer.listOnTimeout (timers.js:92:15)
It looks like this can be solved by:
Use emitter.setMaxListeners() to increase limit.
How do I do this?