paunch/paunch/tests
Bogdan Dobrelya d3c83259bf Fix logging to stdout and file in classes/commands
Fix logging to console to depend on input CLI args. By default, keep
logging to stdout. Make --log-file argument working as well.

Use the input verbosity parameters as a controlling switch for
logs verbosity.

Evaluate log levels as:

  * 1 (WARNING+) - the default log level if neither -v nor --debug used
  * 2 (INFO+)    - applies if -v / --verbose
  * 4 (DEBUG+)   - applies if --debug, dumps command results to file,
    if --log-file is requested.
  * 5 (DEBUG+)   - applies if --debug and -v. Like the latter mode, but
    also dumps the executed commands results to console.

This is needed for better deployments troubleshootng.

Closes-Bug: #1799182

Change-Id: I653ac4cc520e40f3eb4d029e8c99ab482b17a859
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-10-23 18:40:41 +02:00
..
__init__.py Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00
base.py Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00
test_builder_base.py Fix logging to stdout and file in classes/commands 2018-10-23 18:40:41 +02:00
test_builder_compose1.py Stop hardcoding 'docker' and make it more generic 2018-10-02 17:42:29 -04:00
test_builder_podman.py Stop hardcoding 'docker' and make it more generic 2018-10-02 17:42:29 -04:00
test_paunch.py Fix logging to stdout and file in classes/commands 2018-10-23 18:40:41 +02:00
test_runner.py First support for Podman (runner + builder) 2018-09-10 08:33:40 -06:00
test_utils_systemd.py Set standard mode for systemd generated unit files 2018-10-10 14:02:47 +02:00