DiamondLightSource / dodal

Ophyd devices and other utils that could be used across DLS beamlines
Apache License 2.0
2 stars 8 forks source link

Dodal connect better output #930

Open stan-dot opened 5 days ago

stan-dot commented 5 days ago

When I connect to a beamline and it fails, I get a lot of error messages that are difficult to parse. I'd like a better CLI DX where I can see a number of PVs not connected in total, errors thrown due to int-enum mismatch etc.

Moreover when I run dodal connect [beamline] > out.txt only the connected devices get into the buffer, and the errors arrive later and I need to manually copy and paste for debugging. I'd like an output flag to the connect CLI command that keeps the terminal silent and just pipes all of the logs into some default path with a timestamp on my OS such as tmp/logs/dodal/[beamline]-[timestamp].txt or maybe even in Markdown so that I can see a clear nested structure with syntax and section highlighting

also

stan-dot commented 5 days ago

found a neat trick for this $ dodal connect p38 > std.txt 2>err.txt