on_start logs "Daemon started successfully and connected to hardware" on the line immediately after the connection failed, because the driver swallows the error instead of raising, so the except branch never runs.
Seen on hispec-new:
15:27:40 ERROR - Connection error: Connection timed out
15:27:40 atcpress - INFO - Daemon started successfully and connected to hardware
isconnected correctly reports False, so the state is right and only the log lies, but it will mislead whoever reads the journal during an incident.
on_startlogs "Daemon started successfully and connected to hardware" on the line immediately after the connection failed, because the driver swallows the error instead of raising, so theexceptbranch never runs.Seen on hispec-new:
isconnectedcorrectly reports False, so the state is right and only the log lies, but it will mislead whoever reads the journal during an incident.