kmarkley / Indigo-Online-Sensor

Connection status, connection speed, and IP addresses as Indigo devices.
MIT License
1 stars 0 forks source link

Update errors cluttering log on startup #4

Open Astroman opened 6 years ago

Astroman commented 6 years ago

Thanks for this great plugin! I've finally been able to create a process to reset my network when it goes down while I'm traveling.

I've encountered only one minor issue. When I restart my server, the plugin starts checking for updates before my network is fully connected and therefore clutters the log with multiple sets of errors messages. Is there any way to suppress these messages, reduce the number of lines unless debug is on, try again less frequently, create an action to do the update checking, etc. in order to prevent the clutter. I know it's mostly an aesthetic problem but I thought I would ask anyway.

Probably doesn't matter but here are the messages:

Online Sensor Checking for updates... Online Sensor Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last): File "plugin.py", line 134, in runConcurrentThread File "plugin.py", line 279, in checkForUpdates File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Online Sensor.indigoPlugin/Contents/Server Plugin/ghpu.py", line 86, in checkForUpdate File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Online Sensor.indigoPlugin/Contents/Server Plugin/ghpu.py", line 173, in _prepareForUpdate File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Online Sensor.indigoPlugin/Contents/Server Plugin/ghpu.py", line 95, in getUpdate File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Online Sensor.indigoPlugin/Contents/Server Plugin/ghpu.py", line 115, in getLatestRelease File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/Online Sensor.indigoPlugin/Contents/Server Plugin/ghpu.py", line 143, in _GET File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1266, in connect File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 832, in connect File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 557, in create_connection gaierror: [Errno 8] nodename nor servname provided, or not known

Online Sensor Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Thanks!

--Dave