DiamondLightSource/dodal

Dodal connect better output

Open

#930 opened on 2024年11月27日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Python (12 forks)auto 404
bugdocumentationenhancementgood first issuepython

Repository metrics

Stars
 (4 stars)
PR merge metrics
 (PR metrics pending)

説明

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

  • -v verbose flag for the full output
  • connect 1 device mode - to faster debug a particular device connection

コントリビューターガイド