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

Ability to control log level of tsh cli #27441

Open
mvgijssel opened this issue Jun 6, 2023 · 0 comments
Open

Ability to control log level of tsh cli #27441

mvgijssel opened this issue Jun 6, 2023 · 0 comments
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements

Comments

@mvgijssel
Copy link

What would you like Teleport to do?

I would like there to be an option to mute WARNING messages from the tsh cli.

What problem does this solve?

I'm trying to use Teleport in combination with the SSH backend of the testinfra library https://testinfra.readthedocs.io/en/latest/backends.html#ssh in vgijssel/setup#325. Currently the tests from testinfra fail, because the stdout of the ssh commands the library is trying to do is filled with warning of incompatible options:

WARNING: Option 'ConnectTimeout' is not supported.\nWARNING: Option 'ControlMaster' is not supported.\nWARNING: Option 'ControlPersist' is not supported.\n

If it would be possible to configure the log level of the tsh cli like tsh --log-level=error ssh ... and to mute the errors, it would make it easier to integrate into libraries like testinfra.

If a workaround exists, please include it.

Hacky stdout parsing trying to remove the warnings.

@mvgijssel mvgijssel added the feature-request Used for new features in Teleport, improvements to current should be #enhancements label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements
Projects
None yet
Development

No branches or pull requests

1 participant