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
My distractd process died recently, but this output was only available via console.
This should at least be logged. It really ought to throw some kind of non-silent error (perhaps as a notification itself)?
1.) Figure out how to reproduce error.
2.) Log.
3.) Find appropriate notification mechanism to let user know the process died.
Example traceback:
Traceback (most recent call last):
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/distractinator/Distractinator.py", line 220, in run
serialMsg = port.readline().strip()
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/serial/serialposix.py", line 509, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/serial/serialposix.py", line 501, in read
'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/josepd/VENV/d2/bin/distractd", line 11, in <module>
sys.exit(main())
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/distractinator/__init__.py", line 5, in main
d.run()
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/distractinator/Distractinator.py", line 228, in run
serialMsg = port.readline().strip()
File "/home/josepd/VENV/d2/lib/python3.6/site-packages/serial/serialposix.py", line 509, in read
raise SerialException('read failed: {}'.format(e))
serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
The text was updated successfully, but these errors were encountered:
My
distractd
process died recently, but this output was only available via console.This should at least be logged. It really ought to throw some kind of non-silent error (perhaps as a notification itself)?
1.) Figure out how to reproduce error.
2.) Log.
3.) Find appropriate notification mechanism to let user know the process died.
Example traceback:
The text was updated successfully, but these errors were encountered: