-
Notifications
You must be signed in to change notification settings - Fork 22
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
Print active sid information #200
Comments
@jimboca are you on V2 or V3? You should be able to print the raw messages with the SID if you enable verbose logging (Level 5): from pyisy.constants import LOG_VERBOSE
logging.basicConfig(format=LOG_FORMAT, datefmt=LOG_DATE_FORMAT, level=LOG_VERBOSE) |
Thanks, I'll try that, just will make logs go crazy HueEmulator is still on latest v2. Reason I need this is that the ISY error logs print the Sid for connection issues and I was debugging socket errors to see who the culprit was. |
Verbose was added in v2, so you should be able to adjust your logger to level 5 (logging.DEBUG is 10) |
@jimboca - Were you able to get what you need by changing the logging level? This had been dropped below debug just to minimize noise when doing other troubleshooting. Will close this if you got what you needed. |
I totally forgot about this until my ISY had issues again last week and Javi looked at the code. I've been too busy since to even think of it. I will try to enable it again over the holidays. |
What can I look for in the log, there's a lot of logging to sort thru with full debug on :)
I'm now seeing these errors in the log, not sure if they were there before because I cleared all the old logs, so it could be a known issue?
|
comment moved to #199 |
It would be nice if the library would print out the sid conneciton in mesages on initial conneciton and re-connection. Trying to debug 5012 errors on the ISY, and it looks like PyISY is loosing the connection, and around the same time the ISY error log shows
ISY Log:
Nodeserver Log showing one disconnect. The only reason I could know the sid is from the warning messages:
The text was updated successfully, but these errors were encountered: