Skip to content

Logger's print() no longer shifts the output #3636

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

happz
Copy link
Collaborator

@happz happz commented Apr 2, 2025

As discussed offline, print() will no longer shift the output depending on shift or level parameters. It will remain focused on the output rather than logging - and logging is the tree-like pattern when emitted by tmt, while output should not be indented this way.

If a particular callsite wishes to indent (part of) its output, e.g. to improve readability of the output, it needs to do it on its own.

Pull Request Checklist

  • implement the feature

As discussed offline, `print()` will no longer shift the output
depending on `shift` or `level` parameters. It will remain focused on
the output rather than logging - and logging is the tree-like pattern
when emitted by tmt, while output should not be indented this way.

If a particular callsite wishes to indent (part of) its output, e.g. to
improve readability of the output, it needs to do it on its own.
@happz happz added code | logging Changes related to debug logging ci | full test Pull request is ready for the full test execution labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci | full test Pull request is ready for the full test execution code | logging Changes related to debug logging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant