Skip to content
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 device log verbosity #4

Conversation

krkeegan
Copy link

@krkeegan krkeegan commented Nov 9, 2013

I started out making a few changes, and well it just grew.

  • Moved the debuglevel routine to Generic_Item, otherwise X10 devices didn't play nice
  • Changed a couple of the objects to more relevant objects. I tried to avoid having the PLM object turn into a catch all.
  • I got rid of the extra debuglevel routines.

See some of my notes in the commits.

If we don't remove the code now, we will likely never do it.
ALDB objects have no real name, and as such, a user would not be able to add them to a debug line in the ini.  Moreover, if a user puts a device in the debug line, they likely expect to get all relevant messages, including ALDB messages for this device.

Removed debuglevel routine as it is unnecessary.
Neither the Insteon Manager nor the non-object oriented Insteon.pm have user friendly names that can be put into the debug parameter.  As a result adding a debuglevel routine which really just resulted in returning the global insteon debug level only complicated things.
…eInterface

Trying to attach the debug message to the most logical object.  Whenever possible, trying to avoid having the PLM be the "catch-all" object.
Remove debuglevel routine, messages have no human readable names.  All calls should be to the relevant object.

Calls to X10 items are tricky, x10 items are defined outside of BaseObject and so do not inherit the necessary debuglevel routine (unless it is expanded to Generic_Item at some future date)
Attempt to remove as many messages from the PLM as possible.  Avoid using it like a "catch-all".

This is particularly difficult for incoming messages.
…_PLM

Moving to Generic_Item so that it will work properly with X10 items, also allows for expansion into other object types.
pmatis added a commit that referenced this pull request Nov 10, 2013
Whoah, you were busy! It looks good to me, based on my quick review. I think you caught a few things that I missed, like selecting the correct object, rather than $self all the time. Thanks!
@pmatis pmatis merged commit a1ead97 into pmatis:insteon_device_log_verbosity Nov 10, 2013
pmatis pushed a commit that referenced this pull request Nov 30, 2020
pmatis pushed a commit that referenced this pull request Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants