-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insteon: Adjust Log Verbosity on a Per Device Basis #81
Comments
This still sounds nice, but I do not know how to implement it short of manually going through and finding every print_log entry and modifying it, which sounds daunting. I have a few ideas:
can remain. In this design, all messages would be printed as per normal, but if a user defined a log_only_device setting, then only messages from that device that have a log level of the current debug or lower setting would be printed. On the other hand, enabling a setting such as
would be kind of cool. This would allow the logging of all Insteon messages up to level 1 but would log all messages for My_Kitchen_Light up to level 4. This would require more careful editing of the current print_log entries as the call to the print_log sub in Generic_Item would need to include multiple parameters. What do other developers think? Usability should likely supersede coding difficulty, so take my whining with a grain of salt. |
I have some ideas, and I'd like to take a stab at this. What's the best way for me to contribute and link the pull request to this issue? Thanks! |
If you add
Into a comment in a commit, or a pull request, it will show up here in the discussion list. |
I pushed a new commit, which should make it closer to final. I performed a bunch of scans, audits and syncs, then debugged. Stable so far. Still need to ensure that the most logical device is used for each call... but I'm not sure what every function does. Will have to look... |
Revise log output to better assist debug as well as anomaly detection. This also includes the ability to adjust the verbosity level on a per-device (to include the plm) basis.
Request from Wikispaces
The text was updated successfully, but these errors were encountered: