{"action":"created","issue":{"url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/14","labels_url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/14/comments","events_url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/14/events","html_url":"https://github.com/OpenZWave/node-openzwave-shared/issues/14","id":103853241,"number":14,"title":"No way to disable console debug output","user":{"login":"glennschmidt","id":1758170,"avatar_url":"https://avatars.githubusercontent.com/u/1758170?v=3","gravatar_id":"","url":"https://api.github.com/users/glennschmidt","html_url":"https://github.com/glennschmidt","followers_url":"https://api.github.com/users/glennschmidt/followers","following_url":"https://api.github.com/users/glennschmidt/following{/other_user}","gists_url":"https://api.github.com/users/glennschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/glennschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennschmidt/subscriptions","organizations_url":"https://api.github.com/users/glennschmidt/orgs","repos_url":"https://api.github.com/users/glennschmidt/repos","events_url":"https://api.github.com/users/glennschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/glennschmidt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-29T14:06:43Z","updated_at":"2015-08-31T19:05:58Z","closed_at":"2015-08-31T19:05:58Z","body":"When it starts up, this module spits a lot of debug-level messages into the console, and there doesn't seem to be a way to disable that. It looks like this:\r\n\r\n```\r\nloading up RELEASE addon: /home/glenn/zwave-server/node_modules/openzwave-shared/lib/../build/Release/openzwave_shared.node\r\n==> inherits(target: function (path, options) {\r\n\toptions = options || {};\r\n\toptions.modpath = options.modpath || _options.modpath;\r\n\toptions.consoleoutput = options.consoleoutput || _options.consoleoutput;\r\n\toptions.logging = options.logging || _options.logging;\r\n\toptions.saveconfig = options.saveconfig || _options.saveconfig;\r\n\toptions.driverattempts = options.driverattempts || _options.driverattempts;\r\n\toptions.pollinterval = options.pollinterval || _options.pollinterval;\r\n\toptions.suppressrefresh = options.suppressrefresh || _options.suppressrefresh;\r\n\tthis.path = path;\r\n\tthis.addon = new addon(options);\r\n\tthis.addon.emit = this.emit.bind(this);\r\n} source: function EventEmitter() {\r\n  this.domain = null;\r\n  if (exports.usingDomains) {\r\n    // if there is an active domain, then attach to it.\r\n    domain = domain || require('domain');\r\n    if (domain.active && !(this instanceof domain.Domain)) {\r\n      this.domain = domain.active;\r\n    }\r\n  }\r\n  this._events = this._events || {};\r\n  this._maxListeners = this._maxListeners || defaultMaxListeners;\r\n}\r\n====> setMaxListeners\r\n====> emit\r\n====> addListener\r\n====> on\r\n====> once\r\n====> removeListener\r\n====> removeAllListeners\r\n====> listeners\r\n==> inherits(target: function (path, options) {\r\n\toptions = options || {};\r\n\toptions.modpath = options.modpath || _options.modpath;\r\n\toptions.consoleoutput = options.consoleoutput || _options.consoleoutput;\r\n\toptions.logging = options.logging || _options.logging;\r\n\toptions.saveconfig = options.saveconfig || _options.saveconfig;\r\n\toptions.driverattempts = options.driverattempts || _options.driverattempts;\r\n\toptions.pollinterval = options.pollinterval || _options.pollinterval;\r\n\toptions.suppressrefresh = options.suppressrefresh || _options.suppressrefresh;\r\n\tthis.path = path;\r\n\tthis.addon = new addon(options);\r\n\tthis.addon.emit = this.emit.bind(this);\r\n} source: function OZW() { [native code] }\r\n====> setConfigParam\r\n====> requestConfigParam\r\n====> requestAllConfigParams\r\n====> hardReset\r\n====> softReset\r\n====> beginControllerCommand\r\n====> cancelControllerCommand\r\n====> getControllerNodeId\r\n====> getSUCNodeId\r\n====> isPrimaryController\r\n====> isStaticUpdateController\r\n====> isBridgeController\r\n====> getLibraryVersion\r\n====> getLibraryTypeName\r\n====> getSendQueueCount\r\n====> connect\r\n====> disconnect\r\n====> getNumGroups\r\n====> getAssociations\r\n====> getMaxAssociations\r\n====> getGroupLabel\r\n====> addAssociation\r\n====> removeAssociation\r\n====> testNetworkNode\r\n====> testNetwork\r\n====> healNetworkNode\r\n====> healNetwork\r\n====> setLocation\r\n====> setName\r\n====> switchAllOn\r\n====> switchAllOff\r\n====> getNodeNeighbors\r\n====> refreshNodeInfo\r\n====> setValue\r\n====> enablePoll\r\n====> disablePoll\r\n====> isPolled\r\n====> getPollInterval\r\n====> setPollInterval\r\n====> getPollIntensity\r\n====> setPollIntensity\r\n====> createScene\r\n====> removeScene\r\n====> getScenes\r\n====> addSceneValue\r\n====> removeSceneValue\r\n====> sceneGetValues\r\n====> activateScene\r\nCould Not Open OZW Log File.\r\n```\r\n\r\nAlso, the OpenZWave library itself seems to be generating a LOT of log messages to the console as well, despite passing the options `logging: false` and `consoleoutput: false` . Those options seem to be ignored. Is there any way to prevent all these messages?"},"comment":{"url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/comments/136469451","html_url":"https://github.com/OpenZWave/node-openzwave-shared/issues/14#issuecomment-136469451","issue_url":"https://api.github.com/repos/OpenZWave/node-openzwave-shared/issues/14","id":136469451,"user":{"login":"ekarak","id":587817,"avatar_url":"https://avatars.githubusercontent.com/u/587817?v=3","gravatar_id":"","url":"https://api.github.com/users/ekarak","html_url":"https://github.com/ekarak","followers_url":"https://api.github.com/users/ekarak/followers","following_url":"https://api.github.com/users/ekarak/following{/other_user}","gists_url":"https://api.github.com/users/ekarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ekarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekarak/subscriptions","organizations_url":"https://api.github.com/users/ekarak/orgs","repos_url":"https://api.github.com/users/ekarak/repos","events_url":"https://api.github.com/users/ekarak/events{/privacy}","received_events_url":"https://api.github.com/users/ekarak/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T19:05:58Z","updated_at":"2015-08-31T19:05:58Z","body":"Thanks for pointing this one out- These debug statements are mine (not OpenZSave's) - they helped me figure out what was wrong with the API incompatibilities in node 0.12 - hopefully the new NaN layer will sort this out.\r\nI've removed these statements so as to make bootup less noisy. New release is 1.0.4."}}