You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding the use of the "debug" library: Would it be possible to prefix the debugger in such the messages can be easily filtered (very handy when embedding this library)
Required changes:
lib/HAPServer.js :1
var debug = require('debug')('HAPNodeJS:HAPServer');
lib/util/eventedhttp.js :1
var debug = require('debug')('HAPNodeJS:EventedHTTPServer');
lib/Accessory.js :1
var debug = require('debug')('HAPNodeJS:Accessory');
small change no need for pull requests I guess ...
If you're using this in one or more of your libraries, you should use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you should prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
Thanks.
The text was updated successfully, but these errors were encountered:
Regarding the use of the "debug" library: Would it be possible to prefix the debugger in such the messages can be easily filtered (very handy when embedding this library)
Required changes:
lib/HAPServer.js :1
var debug = require('debug')('HAPNodeJS:HAPServer');
lib/util/eventedhttp.js :1
var debug = require('debug')('HAPNodeJS:EventedHTTPServer');
lib/Accessory.js :1
var debug = require('debug')('HAPNodeJS:Accessory');
small change no need for pull requests I guess ...
Reference:
https://www.npmjs.com/package/debug#conventions
Thanks.
The text was updated successfully, but these errors were encountered: