Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dodal connect better output #930

Open
stan-dot opened this issue Nov 27, 2024 · 1 comment
Open

Dodal connect better output #930

stan-dot opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers python Pull requests that update Python code

Comments

@stan-dot
Copy link
Contributor

stan-dot commented Nov 27, 2024

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
@stan-dot stan-dot added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers python Pull requests that update Python code labels Nov 27, 2024
@stan-dot
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant