#7914 Use logger as a replacement of print calls
Opened 6 years ago by twoerner. Modified 6 years ago

Issue

The use of prints in the freeipa code is resulting in the need to redirect the possible standard output in ansible-freeipa. For the simplification of the ansible-freeipa backport patches () it is needed to have a new way for command output in the installers.

The use of contextlib.redirect_stdout is is not always simply possible as this is resulting in a different scope so that variables that are created in the scope will not be visible and usable outside.

A solution could be to use logger.info with an extra tag to mark installer command output.


Metadata Update from @abbra:
- Issue tagged with: Raven

6 years ago

Log in to comment on this ticket.

Metadata